Hello, * On Mon, Jul 06, 2015 at 10:13:23AM +0200 smf wrote: > For example it's possible to enable all rows or all columns and then poll to > see if any key is pressed (the commodore LCD rom actually does this). The C64 does so, too, cf. iSCNKEY ($FF9F). EA87 LDA #$00 ... some code, A is not changed ... EA90 STA $DC00 ; test all rows EA93 LDX $DC01 ; get columns EA96 CPX #$FF ; nothing pressed? EA98 BEQ $EAFB ; yes --> Skip scanning the keyboard It's the same code for the VIC20, only the addresses vary. Regards, Spiro. -- Spiro R. Trikaliotis http://www.trikaliotis.net/ Message was sent through the cbm-hackers mailing listReceived on 2015-07-07 19:00:07
Archive generated by hypermail 2.2.0.