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: 1153
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: 1714
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: 29
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
Guests online: 131
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 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (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 Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Antitrack  (9.8)
4 Mr Zero Page  (9.8)
5 OTD  (9.8)

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