Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user peterfj ! (Registered 2019-04-20) You are not logged in 
CSDb User Forums


Forums > C64 Coding > Stop drive error
2019-04-13 09:45
oziphantom

Registered: Oct 2014
Posts: 293
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: 1211
Reading the error channel I suppose.
2019-04-13 11:45
Krill

Registered: Apr 2002
Posts: 1165
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
DuncanTwain
St0rmfr0nt/ExCeSs
Dymo/G★P
OEP
G-Force
leuat
TheEnemy/Excess/THD
Lexi
Dipswitch/Up Rough
SLC
iAN CooG/HVSC
Guests online: 57
Top Demos
1 Unboxed  (9.7)
2 Uncensored  (9.7)
3 Rivalry  (9.7)
4 Edge of Disgrace  (9.6)
5 Coma Light 13  (9.6)
6 Comaland 100%  (9.6)
7 The Shores of Reflec..  (9.6)
8 Lunatico  (9.6)
9 X Marks the Spot  (9.5)
10 Old Men in Used Cars  (9.5)
Top onefile Demos
1 Instinct  (9.7)
2 Smile to the Sky  (9.6)
3 Daah, Those Acid Pil..  (9.5)
4 Dawnfall V1.1  (9.4)
5 FMX Music Demo  (9.4)
6 Party Horse  (9.4)
7 Bad Boy  (9.4)
8 Crystal Gazer  (9.4)
9 Rewind  (9.4)
10 Pandemoniac Part 2 o..  (9.4)
Top Groups
1 Fossil  (9.9)
2 PriorArt  (9.7)
3 Oxyron  (9.5)
4 Booze Design  (9.4)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Horizon  (9.8)
3 The Mind Slayer  (9.8)
4 The Shadow  (9.7)
5 Stormbringer  (9.6)

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