Estoy tratando de hacer una rom, el código inicial es este:
Código: Seleccionar todo
save "D:\hello.rom",#c000,#ffff-#c000
org #c000
os_reset equ #0000
os_txt_output equ #bb5a
kl_curr_selection equ #b912
header:
defb 1
defb 1,2,9
defw rsx_commands
rsx_table:
jp init
jp hello
jp reset_
rsx_commands:
defb "HELLO RO","M"+#80
defb "HELL","O"+#80
defb 'RESE',"T"+#80
defb 0
init:
push bc
push de
push hl
ld hl, str_init
call print_str
pop hl
pop de
pop bc
;; HL = last available address for next ROM
;dec hl
ret
;; |HELLO
hello:
push hl
ld hl, str_hello
call print_str
pop hl
ret
;; |RESET
reset_:
jp os_reset
print_str:
ld a, (hl)
or a
ret z
call os_txt_output
inc hl
jr print_str
str_init: db " My ROM 1.1",10,13,10,13,0
str_hello: db "Hello world!",10,13,10,13,0
He mirado otras roms de ejemplo, y no veo dónde puede estar el fallo.
¿alguna ayuda?
gracias.