Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > CBM-key
2013-02-06 20:41
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???
2013-02-06 20:43
Burglar

Registered: Dec 2004
Posts: 1033
it doesnt trigger $ffe4, its like pressing shift.

use the following instead
lda $dc01
cmp #$df
beq cbmkey_pressed
2013-02-06 20:56
The Gothicman
Account closed

Registered: Aug 2011
Posts: 40
Thanx! :)
2013-02-07 08:17
Bitbreaker

Registered: Oct 2002
Posts: 500
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
psych
zscs
Isildur/Samar
Acidchild/Padua
McMeatLoaf
Proton/Finnish Gold
Guests online: 127
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.034 sec.