Code below is normally running on 128 machine, but does print nothing on Next.
Code: Select all
DEVICE ZXSPECTRUM128
;DEVICE ZXSPECTRUMNEXT
ROM_CLS EQU 0x0DAF ; Clears the screen and opens channel 2
REGULAR EQU %00010000 ; ULA screen in Bank 5, 48K ROM, Bank 0
page 0
org #C000
START:
ld sp, 25000
ld a, REGULAR
ld bc,#7FFD
out (c),a
CALL ROM_CLS ; Clear screen and open Channel 2 (Screen)
call cls
LD A, 65 ; Character to print
RST 0x10
ld a, 1
out(254), a
looper:
di
halt
cls:
ld hl,$4000
ld de,$4001
ld bc,$1800
ld (hl),l
ldir
ld (hl),%00101001
ld bc,$02FF
ldir
ret
;SAVENEX OPEN "test.nex", START, 25000 : SAVENEX AUTO : SAVENEX CLOSE
SAVESNA "test.sna", START