Is this safe?
; set BIOS LD H, 0 ; page 0 ; ROMSLT = Main BIOS slot ID. (MSX2 and up only) LD A, ROMSLT LD IY, (ROMSLT-1) LD IX, ENASLT CALL CALSLT ; MSX-DOS environment so inter-slot call ; code using the BIOS directly ... ; code end ; restore RAM LD H, 0 ; page 0 ; RAMAD0 = Slot address of RAM in page 0 (DOS) LD A, RAMAD0 CALL ENASLT ; we are in BIOS environment so direct call
ENASLT use SlotId format, so it is supposed ROMSLT contains the correct data. Is the same for RAMAD0?.
Entrar ou registrar-se para comentar