Article View: es.comp.msx
Article #3459Problemas con el ensamblador
From: Antoni Burguera
Date: Sun, 21 Jun 1998 00:00
Date: Sun, 21 Jun 1998 00:00
47 lines
2040 bytes
2040 bytes
Hola
Estoy aprendiendo ensamblador, y para empezar estoy tocando el MSX1. He
hecho el siguiente programa, que intenta meter unos datos en la zona de la
VRAM dedicada a la tabla de patrones de SCREEN 2. La idea es "redefinir"
algunos caracteres. Haciendolo desde BASIC con VPOKE y VPEEK me funciona,
pero desde ensamblador no. Este es el programilla:
START: EQU &HA000 ; Start address
SCREEN2: EQU &H72 ; SCREEN 2 BIOS routine
VPOKE: EQU &H4D ; VPOKE BIOS routine
PAT2: EQU &H0000 ; SCREEN 2 Pattern Table Address
COL2: EQU &H2000 ; SCREEN 2 Color Table Address
NOM2: EQU &H1800 ; SCREEN 2 Name Table Address
NUMCHAR: EQU 4 ; Number of chars to redefine
ORG START
CALL SCREEN2
LD HL, PAT2
LD B, NUMCHAR*8-1
LD DE, DEFCHAR
LOOP: LD A, (DE)
CALL VPOKE
INC HL
INC DE
DJNZ LOOP
LD A,(DE)
CALL VPOKE
RET
DEFCHAR: DB *** Data of the new chars ***
Por que no funciona?
Gracias
P.S.: Ahora que me fijo... podr�a ser que la rutina de VPOKE modificara el
registro HL?
+------------------------------------------------+
| Toni Burguera Burguera |
+------------------------------------------------+
| E-mail : burguera@mundivia.es |
+------------------------------------------------+
| 9D - La Novena Dimensio |
| http://www.geocities.com/Area51/Dimension/9812 |
+------------------------------------------------+
Technical Details
Message-ID:
<6mhek4$i3j$2@talia.mad.ibernet.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 10727c,4a98bcacf31262dc,start X-Google-Attributes: gid10727c,public From: "Antoni Burguera" <burguera@mundivia.es> Subject: Problemas con el ensamblador Date: 1998/06/21 Message-ID: <6mhek4$i3j$2@talia.mad.ibernet.es> X-Deja-AN: 364577560 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Telefonica Transmision de Datos Newsgroups: es.comp.msx