This program will turn off the calculator. WOW!
The code is simple, it doesn't even include any ROM calls! Follow along now.
DI ; disable interrupts
LD A,001H ; Loading 0 to "a" register
OUT (003H),A ; turn off screen
EI ;enabling interrupts
DI - z80 Instruction that Disables Interrupts
EI - z80 Instruction that Enables Interrupts
What's to explain?
Click to return to the site's menu... or here to get back to the tutorial's menu.