Re: A82: HALT command


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

Re: A82: HALT command



ilya winham wrote:
> 
> What does the HALT command do and why would I want to use it?

I think HALT can also by use in a GET_KEY loop to use less cpu time that
make the screen down when you have old batteries.
for example:

loop:
	HALT
	CALL GET_KEY			; GET the KEY
	CP	$37			; Was mode pressed?
	jr z,Label			; Jump to "Label" if mode pressed
	jr	loop


References: