Code
STACK .EQU 2099H
.ORG 0000H
ld SP, STACK
jp 2000H
.ORG 0038H
jp service_routine
.ORG 2000H
EI
IM 1 ; <------- THIS LINE
LD A, 00H
LOOP:
ADD A, 00H
jp z, LOOP
service_routine:
DI
ld A, 55H
out (07H),A
ld A, 00H
EI
ret
Error
Using this online IDE http://clrhome.org/asm/
It gives me: Unknown instruction or directive IM (line " IM 1" in hello_z80)
So?
Am i doing something stupid here?
I have no clue as to why i get this error.
Haven't had any luck with google.