supercat Posted December 6, 2006 Share Posted December 6, 2006 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? Quote Link to comment Share on other sites More sharing options...
mos6507 Posted December 6, 2006 Share Posted December 6, 2006 In what context are you calling this? Seems like all you would have to do is jump to the loader and ask for loadid #0 (as multiloaders do). Then if you load in the first load of any game it should just overwrite what was there and be equivalent to a powercycle. Quote Link to comment Share on other sites More sharing options...
+batari Posted December 6, 2006 Share Posted December 6, 2006 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? Quote Link to comment Share on other sites More sharing options...
supercat Posted December 6, 2006 Author Share Posted December 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
+batari Posted December 6, 2006 Share Posted December 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.