C6502 has an interconection with CIA 1

Started by Baggey, March 17, 2023, 18:53:20

Previous topic - Next topic

Baggey

So how do i get CIA 1 to interact with C6502 to make the CURSOR FLASH! anyone 8) :o :-X
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Xerra

From memory... and it was a long time ago, I seem to recall that the cursor flashing on and off was handled by the interrupt system. The long address in bytes 788 and 789, I think. You could use SEI to set the interrupts to jump to the location in these two bytes - address = peek(788)*256 + peek (789) - and then use CLI to clear the interrupt flag once it was done, after reseting the default location perhaps.

However, I'm probably waffling here because this might have just been a way for the user to add their own code to be handled by the interrupt routine, and the stuff like cursor was done before any of your own stuff, as long as you could get it all done before you reached the end of the scan line on your display device (tv, monitor or whatever)... It's been such a long time, though, and I wasn't that clear on it, even as a teenager.

I appreciate this post has probably been as useful as a chocolate fireguard :)
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/

Xerra

You could ask one of the guys here:  Sleeping Giant

it's a Vic 20 site, but these are seriously techy guys on the platform, and I'm 99% certain interrupts worked the same way on both the Vic 20 and the C64.
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/