RosettaCodeData/Task/Empty-program/Z80-Assembly/empty-program-2.z80

6 lines
277 B
Z80 Assembly

ProgramStart:
nop ;not sure if this is needed but Game Boy is somewhat buggy at times and the tutorials I used all did it
di ;disable interrupts
foo:
jp foo ;trap the program counter here. (Don't do this on a real Game Boy, you'll drain the batteries much faster than usual.)