[A83] Calculator power-off woes
[Prev][Next][Index][Thread]
[A83] Calculator power-off woes
HELLLLLLPPPP! I think I've tried everything!
I am working on a custom interrupt mode 2 routine for the TI-83, and I want
to turn off the calculator within it. The problems I have are:
(1) out (3),1 does not turn off the LCD
(2) halt either responds to no interrupts (frozen calc, turnon is never
called, usually happens on both VTI and real calc) or responds to all
interrupts, including timer (happens when I step thru in VTI).
This is basically the code I want to use:
int_start:
exx
ex af,af'
bit pwrflag
jr z,turnon
.
.
.
turnoff:
res pwrflag
ex af,af'
exx
push af
ld a,01h
ei
out (03h),a
halt ;wait for on-key interrupt (shouldn't this call turnon?)
di
pop af
exx
ex af,af'
.
.
.
turnon:
set pwrflag
ld a,0Fh
out (3),a
exx
ex af,af'
reti
Follow-Ups: