Re: LZ: power off


[Prev][Next][Index][Thread]

Re: LZ: power off



[nonsense removed for obvious reasons]


ALRIGHT!  Enough.  Here is the routine I use in Key Code Lock 85:
~~~~~~~~
PowerDown:
	DI
	ld  a,00000001b
	out (3),a
;         76543210
	ld  a,00000000
;         ||||
;         ||++---Low Resistance
;         ++---- 10 Byte Buffer
	out (4),a
	EX  AF,AF'                         ; 4B59
	EXX                                ; 4B5A
	
	EI
	
	halt


TurnOn:
	ld  a,22                           ; Normal Buffer Mode
	out (4),a
	ld  a,65
	out (6),a


	ld  a,00001011b                    ; LCD On
	out (3),a


	ret


~~~~~~~~
Alright?  There.  That THROUGHLY shuts off the calc.  Screen off, low 
power mode, everything.


Cheers,


____
~Keith
FFNP69C@PRODIGY.COM


Follow-Ups: References: