Hello Guys,
Manage an extensive basic and put a CALL LOADGAME (1) form basic
I would like put on the new exteded basic a new command as
CALL LOADGAME(1) in mode that it to load in RAM a basic-list
This LIST BASIC it must to be on source assembler of this my
EXTENDED BASIC. Link my exteded basic for MSX1:
http://gamecast.altervista.org/extendedbasic/index.htm
Example of as should to be this code in assembly:
LOADGAME:
POP HL
LD A,(HL)
CP '(' ; check haakje
JP NZ,SYNTAX
INC HL
CALL R_BYTE ; registro A
LD (_hl),A
LD A,(HL)
CP ')'
JP NZ,SYNTAX
INC HL
PUSH HL ; bewaar pointer
di
ld a,(page)
ld hl,$8000
call $24
ei
pop hl
xor a
ret
page: .equ _hl+2
Login or register to post comments
