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 > Requests > NTSC 2-bit transfer routines?
2002-04-24 14:58
cadaver

Registered: Feb 2002
Posts: 1154
NTSC 2-bit transfer routines?

Is there anywhere source code of 2-bit transfer routines with NTSC timing, for a fastloader? Most 2-bit fastloaders seem to be PAL only. Of course, I can rip one from a game but this would be a cleaner solution...
2002-04-24 14:59
cadaver

Registered: Feb 2002
Posts: 1154
And yes, Dreamload uses the ATN-line.. That's not what I'm after :)
2002-04-24 16:12
Celtic
Administrator

Registered: Jan 2002
Posts: 807
as i said before in another post, is there use for a coders-forum in this database??
if so, then back me up on this.. if enough people back me up, we will install one!

/celtic
2002-04-24 17:16
cadaver

Registered: Feb 2002
Posts: 1154
Yes, definitely good idea.
2002-04-24 23:23
cadaver

Registered: Feb 2002
Posts: 1154
Answering my own question :) In fact the solution is easy, the difference is just one clock cycle. Though I don't guarantee anything about these routines.. Btw. this routine was reverse-engineered and adapted from the loader in Technocop, though there's likely 100 similar routines :)

Computer side:

fastload_get: lda $dd00
and #$03
sta fg_eor+1
ora #$10
fg_wait: bit $dd00 ;Wait for 1541 to
bmi fg_wait ;set DATA low
sta $dd00 ;Set CLK low
sei
fg_waitbadline: clc
lda $d011
sbc $d012
and #$07
beq fg_waitbadline
lda $dd00
and #$ff-$10
sta $dd00 ;Set CLK high
fg_delay: lda $00 ;NTSC delay. PAL
lda $1000 ;delay should be
lda $1000 ;one cycle less
lda $dd00
lsr
lsr
eor $dd00
lsr
lsr
eor $dd00
lsr
lsr
fg_eor: eor #$00
eor $dd00
cli
rts

Diskdrive side:

sendbyte: sty temp
tax
lsr
lsr
lsr
lsr
tay
lda sendtbl,y
pha
txa
and #$0f
tay
ldx #$02 ;Set DATA=low
stx $1800
ldx #$00
lda #$04
swait1: bit $1800 ;Wait for CLK=low
beq swait1
stx $1800 ;Set DATA=high
lda sendtbl,y
swait2: ldx $1800 ;Wait for CLK=high
bne swait2
sta $1800
asl
and #$0f
sta $1800
pla
sta $1800
asl
and #$0f
sta $1800
nop ;Not sure if absolutely
ldy temp ;essential
lda #$00
sta $1800
rts

sendtbl: dc.b $0f,$07,$0d,$05
dc.b $0b,$03,$09,$01
dc.b $0e,$06,$0c,$04
dc.b $0a,$02,$08,$00
2002-04-25 00:32
T.M.R
Account closed

Registered: Dec 2001
Posts: 749
Quote: as i said before in another post, is there use for a coders-forum in this database??
if so, then back me up on this.. if enough people back me up, we will install one!

/celtic


[Waves hand in the air] i'd like to see a coders forum.
2002-04-25 11:51
Pixman
Account closed

Registered: Dec 2001
Posts: 42
Oh yes, give it to us :)
Coder forums are great, but what about a music forum?
Some (of the rare) newcomers seem to have still problems about music and others have problems configuring & using their editor.
Well, just a proposition.

Greets,
Pixman
2002-04-25 12:27
Steppe

Registered: Jan 2002
Posts: 1510
Great idea!

For me (and others probably too) this could be a valuable resource. I'm especially thinking of tips on how to get instruments to sound the way you want. I still can't figure out how some composers created the sounds and which techiques they used.
2002-04-25 20:31
cadaver

Registered: Feb 2002
Posts: 1154
Heh, in fact it was good I didn't get any actual answers in between of me actually figuring them out myself :) Of course, 2-bit fastloading is about 17 years old but still it feels proud to do something yourself..

The results are now published in Rant #9:
http://www.student.oulu.fi/~loorni/covert/rants/2bitload.htm

(and thanks to MuOn for verifying the operation on a NTSC C64)
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
cba
csabanw
DeMOSic/MS^LSD^ONS
Mythus/Delysid
iAN CooG/HVSC
syntaxerror
Nicron
JackAsser/Booze Design
t0m3000/HF^BOOM!^IBX
Acidchild/Padua
Airwolf/F4CG
Mibri/ATL^MSL^PRX
Guests online: 75
Top Demos
1 Next Level  (9.7)
2 Mojo  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 It's More Fun to Com..  (9.5)
7 Rasterwave  (9.5)
8 Dawnfall V1.1  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.4)
2 Magic  (9.4)
3 hedning  (9.2)
4 Elwix  (9.1)
5 Remix  (9.1)

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