Reputation: 95
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
Using this online IDE http://clrhome.org/asm/
It gives me: Unknown instruction or directive IM (line " IM 1" in hello_z80)
Am i doing something stupid here?
I have no clue as to why i get this error.
Haven't had any luck with google.
Upvotes: 2
Views: 340
Reputation: 64904
As I said in the comments, I've let DeepThought know about it. I just hopped on the chat at Omnimaga (DeepThought is an admin there), and he told me he has fixed it.
IM 0
, IM 1
and IM 2
all work now. They assemble and autocomplete knows about them too.
So in answer to your question, yes, it was in fact a bug and not your fault.
Upvotes: 2