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


Forums > C64 Coding > 2 bit irq loader
2006-06-21 22:11
MRT
Account closed

Registered: Sep 2005
Posts: 149
2 bit irq loader

Hmm, just a question...

Is there a 2 bit irq loader, which doesn't require blocking other interrupts while loading a byte?

i.o.w. Is there a realy fast irq loader which doesn't block any interrupts and let me use my beloved sprites? :-)
 
... 42 posts hidden. Click here to view all posts....
 
2006-06-26 08:12
Cruzer

Registered: Dec 2001
Posts: 1048
Quote: The question about the fastest loader is a bit like the one about the best cruncher or assembler. It depends heavily on your needs and requirements.

Ok, how about...

- It has to work with a C64 + a 1541, and doesn't have to work on other drives.

- It loads 16 blocks ($1000) of code, which can't really be compressed much, so let's say it's not compressed.

- One IRQ each frame for playing music, and doing simple stuff like switching some text. The IRQ will use up to 48 ($30) rasterlines.

- No need for cycle excact timing. Actually the IRQ could vary several rasterlines if that would make the loader faster.

- No sprites on the screen.

Wonder if it would be possible to use all 3 bits for data transfer for a loader with these kinda requirements.
2006-06-26 08:59
JackAsser

Registered: Jun 2002
Posts: 2014
@Cruzer: Only the C64 can control the ATN line so you can't make use of all three bits as data bits when sending from 1541->C64 (loading). Saving could in theory ofcourse make use of it. :D World's fastest hiscore saver anyone? :D
2006-06-26 13:01
chatGPZ

Registered: Dec 2001
Posts: 11386
what about programming ATN as output, but still using it as input? works with certain other i/o lines atleast :)
2006-06-26 13:27
Krill

Registered: Apr 2002
Posts: 2980
I don't think that would work. If you check with the 1541's bus circuitry, the ATN line is heavily interlocked with the data line, and there is some blocking diode in the 1541->C64 direction, iirc. I second JackAsser there, C64->1541 works, but not the other way around.
2006-06-26 15:21
chatGPZ

Registered: Dec 2001
Posts: 11386
ah yes, i remember now :)
2006-12-07 14:12
MRT
Account closed

Registered: Sep 2005
Posts: 149
Ehr... silly question maybe. But I'm writing my own loader now and I was wondering why the VIA reg and the CIA reg both have input and output bits.
Wouldn't it be more logical if you would just have a data bit and a clock bit, which would reflect the current state?

What is the benefit of having the in/out bits per line?
2006-12-07 14:23
Graham
Account closed

Registered: Dec 2002
Posts: 990
The benefit is that you don't need to switch the data direction all the time.
2006-12-11 16:00
MRT
Account closed

Registered: Sep 2005
Posts: 149
Hmm, but do you need to clear it?
ie. when I set the data-out from low to high, will the data-in automatically be high too?
Or will the data-in remain the same until the other party lowers it?
And if so, can I reset it too? by clearing the via1 for example?
2006-12-11 17:43
MagerValp

Registered: Dec 2001
Posts: 1078
CLK/DATA IN is active when the output is active on either the computer or one of the drives. If all are inactive, CLK/DATA IN is inactive.
2006-12-11 18:15
MRT
Account closed

Registered: Sep 2005
Posts: 149
ehr... yeah, but on the VIA1 register... When I set data-out to active, will then automatically the data-in on that same VIA1 register be set to active?

Edit: Or will the data-in on that VIA1 register only be set to active, when the C64 (or another drive) sets that line to active?
Previous - 1 | 2 | 3 | 4 | 5 | 6 - 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
MWR/Visdom
CreaMD/React
Courage
CA$H/TRiAD
iceout/Avatar/HF
Guests online: 108
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (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 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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