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: 1101
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: 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.
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
Matt
csabanw
Alakran_64
Durandal
Jammer
Guests online: 113
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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