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 > Opinions on safe minimum $1c07 value?
2003-03-09 16:06
cadaver

Registered: Feb 2002
Posts: 1160
Opinions on safe minimum $1c07 value?

Any opinions on safe values of $1c07 (disk drive interrupt/head stepper motor frequency on 1541-ish drives)?

I know $3a is the default, and $10 is something one should *never* go below. I quickly checked Remember's recent Gemini Wing release and there $20 was used. So I guess the minimum safe value, considering different disk drive clones etc. would be somewhere between $10-$20?
 
... 10 posts hidden. Click here to view all posts....
 
2015-05-17 11:20
tlr

Registered: Sep 2003
Posts: 1790
Quote: how about checking if we're on the top/bottom border, and change transfer method for that part ? :) ofcourse sprited would be not allowed in there ;)

That's quite common.

Example (from the Superkit filecopier):
.C:3663  A2 07       LDX #$07
.C:3665  38          SEC
.C:3666  AD 12 D0    LDA $D012
.C:3669  E9 32       SBC #$32
.C:366b  90 04       BCC $3671
.C:366d  29 07       AND #$07
.C:366f  F0 F5       BEQ $3666
.C:3671  8E 00 DD    STX $DD00
.C:3674  48          PHA
.C:3675  68          PLA
.C:3676  24 EA       BIT $EA
.C:3678  AD 00 DD    LDA $DD00
.C:367b  4A          LSR A
.C:367c  4A          LSR A
.C:367d  4D 00 DD    EOR $DD00
.C:3680  4A          LSR A
.C:3681  4A          LSR A
.C:3682  4D 00 DD    EOR $DD00
.C:3685  4A          LSR A
.C:3686  4A          LSR A
.C:3687  A2 27       LDX #$27
.C:3689  4D 00 DD    EOR $DD00
.C:368c  8E 00 DD    STX $DD00
2015-05-17 13:23
DJ Gruby

Registered: Aug 2002
Posts: 30
Krill, you are the God! Thanks so much, now with your change the code seems to work and it doesn't load any garbage anymore, just an original file data:
charin  ldx #$03

charin1 sec
        lda $d012
        sbc #$03
        and #$07
        cmp #$07
        bcs *-9

        lda #$0b
        sta $dd00
        bit $dd00
        bpl charin1
Thanks, you rock!
Previous - 1 | 2 - Next
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
Neon Vincent
Endurion
Chrx/Design/Chaos
Matt
Guests online: 111
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 Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

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