Jump to content
IGNORED

Rebooting SuperCharger


supercat

Recommended Posts

I'm trying to make my code reboot a SuperCharger (to save having to power-cycle my machine). The following crashes. Can anyone tell why?

			ldx	 #31
rlplp:
			lda	 RLCOD,x
			sta	 $80,x
			dex
			bpl	 rlplp
			ldy	 #16
			jmp	 $80
RLCOD:
			nop	 $1F00
			nop	 $1FF8
rlcd:
			sta	 WSYNC				
			dex
			bne	 rlcd
			dey
			sty	 AUDF0
			sty	 AUDV0
			sty	 AUDF1
			sty	 AUDV1
			bne	 rlcd
			jmp	 ($1FFC)

I think $00 is the banking mode for starting up the SuperCharger, $1FFC is its hardware reset vector, and I'm waiting plenty long for the ROM to power up. What's the problem?

Link to comment
Share on other sites

I'm trying to make my code reboot a SuperCharger (to save having to power-cycle my machine). The following crashes. Can anyone tell why?

nop $1F00

[/code]

I think $00 is the banking mode for starting up the SuperCharger, $1FFC is its hardware reset vector, and I'm waiting plenty long for the ROM to power up. What's the problem?

I've caused the SC to restart itself with some buggy code, so it can't be difficult to do.

 

I see that bit zero of the banking mode tells the SC whether or not to power up the ROM. So you'd need to change the above to nop $F001.

 

What's with all that funky audio stuff?

Link to comment
Share on other sites

What's with all that funky audio stuff?

 

Trying to track down exactly when the thing was crashing. The SC doc I had said the 'power down bit' is 1 for power down and '0' for ROM operation. But maybe that's backward.

I may have incorrect information - I'm just going from comments I found in source code.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...