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 > How to stop a raster IRQ?
2008-01-06 15:49
Mace

Registered: May 2002
Posts: 1799
How to stop a raster IRQ?

With #$7f in $dc0d & $dd0d, #$01 in $d01a, setting the IRQ vectors in $fffe/$ffff and ack'ing $dc0d, $dd0d and $d019, I know how to start a raster interrupt.

But what do I do when I have that running and want to stop it?
2008-01-06 15:58
chatGPZ

Registered: Dec 2001
Posts: 11386
just put the proper values back into dc0d and d01a :)
2008-01-06 16:17
tlr

Registered: Sep 2003
Posts: 1790
What groepaz said, but it depends what you need it for.
sei
lda #$00
sta $d01a
lda #$01
sta $d019
lda #$81
sta $dc0d
lda $dc0d
cli

If you disabled the timer IRQs by stopping the timers instead it'd be lda #$01; sta $dc0e; lda $dc0d.
(you could modify it with some fancy lsr $d019 acking if desired)

The timer stuff gets set up in $ff84/$fda3, so if you are going to switch on the kernal anyway you can call that.
The drawback is that the volume reg is cleared as well.
2008-01-06 16:24
Scout

Registered: Dec 2002
Posts: 1570
			lda $fffe
			sta oldirq
			lda $ffff
			sta oldirq+1
			
			sei
			<do your thing>

			<after pressing space do this:>

			sei
			lda #$37
			sta $1
			lda oldirq
			sta $fffe
			lda oldirq+1
			sta $ffff
			lda #$81
			sta $dc0d
			lda #$00
			sta $D019
			sta $D01A
			sta $D418
			lda #$1B
			sta $D011
			lda #$15
			sta $D018
			cli
			jmp depackyourcrack


oldirq			.word 0


Yes, what Groepaz said :)
2008-01-06 17:25
Mace

Registered: May 2002
Posts: 1799
Ok, thanks.

If it doesn't work, I want to opt for a new credit in CSDb.
Credits for fucking up ;-)
2008-01-06 17:31
Oswald

Registered: Apr 2002
Posts: 5094
chuck norris can stop an irq with only one hand!
2008-01-06 17:34
tlr

Registered: Sep 2003
Posts: 1790
Quote: chuck norris can stop an irq with only one hand!

... and Bruce can do it with one finger! ;)
2008-01-06 22:14
Jayce
Account closed

Registered: Dec 2001
Posts: 39
Amazing.. Springsteen can write good songs and stop IRQ's.. Guess that's why they call him the boss :)
2008-01-07 00:42
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
Quote: With #$7f in $dc0d & $dd0d, #$01 in $d01a, setting the IRQ vectors in $fffe/$ffff and ack'ing $dc0d, $dd0d and $d019, I know how to start a raster interrupt.

But what do I do when I have that running and want to stop it?


Pull C64 powercord
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
Mike
Alakran_64
Darkflight
MWR/Visdom
tokra/Akronyme Analo..
Acidchild/Padua
Peacemaker/CENSOR/Hi..
bexxx
Slajerek/Samar
Guests online: 118
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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