| |
The Gothicman Account closed
Registered: Aug 2011 Posts: 40 |
CBM-key
Just getting mad and can't find anything on the net:
When I want to check the CBM-key via $ffe4...
...which code is it??? |
|
| |
Burglar
Registered: Dec 2004 Posts: 1101 |
it doesnt trigger $ffe4, its like pressing shift.
use the following instead
lda $dc01
cmp #$df
beq cbmkey_pressed |
| |
The Gothicman Account closed
Registered: Aug 2011 Posts: 40 |
Thanx! :) |
| |
Bitbreaker
Registered: Oct 2002 Posts: 508 |
As long as the keyboard handler is still called by some irq:
lda $028d
and #$02
bne cbm_pressed
Burglar's solution of course does not need a kernal or calling $ea31 after irq, so it is more flexible.
|