A86: Re: LCD stuff


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

A86: Re: LCD stuff




> 1) How do you turn off the LCD?

 in a,(3)                  ; get current port data
 and %11110101   ; turn off LCD and set status byte
 out (3),a                ; send to port

Remember, this is not turning off the calc, like when you hit more on Bill
Nagel's Mario game.  This merely turns off the LCD.  Be sure to turn it back
on later:

 in a,(3)
 or %00001010
 out (3),a

> 2) How do you check for a 2nd-on keypress?

#include "ti86asm.inc"    (this is the ACZ include file that comes with
Assembly Studio)

...

 call _get_key     ; this is like _getky, but much faster, and works with
ISR's that fix down-left bug
 cp K_SECOND
 jr z,second_was_pressed
; if didn't jump, second was NOT pressed




References: