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 > Stop drive error
2019-04-13 09:45
oziphantom

Registered: Oct 2014
Posts: 478
Stop drive error

What is the easiest way to stop the driver flickering its light post error, in code?
2019-04-13 09:53
tlr

Registered: Sep 2003
Posts: 1714
Reading the error channel I suppose.
2019-04-13 11:45
Krill

Registered: Apr 2002
Posts: 2839
Quoting tlr
Reading the error channel I suppose.
Indeed. From loader source:
            ; read error channel on active drive to stop potentially blinking error LED
            ldx #COMMAND_ERROR_CHANNEL
            jsr CHKIN
:           jsr READST
            bne :+
            jsr CHRIN
            jmp :-
:           lda #COMMAND_ERROR_CHANNEL
            jsr CLOSE
            jsr CLRCHN
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
Flavioweb/🇮🇹HF..
Martin Piper
Frostbyte/Artline De..
digix
Smasher/F4CG
Apollyon/ALD
megatonn/Bronx
CA$H/TRiAD
Acidchild/Padua
Guests online: 132
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 Bromance  (9.6)
10 Memento Mori  (9.6)
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 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Graphicians
1 Sulevi  (10)
2 Mirage  (9.8)
3 Lobo  (9.7)
4 Mikael  (9.7)
5 Archmage  (9.7)

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