User Tools

Site Tools


base:protecting_against_soft-resets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
base:protecting_against_soft-resets [2016-01-31 21:03]
karmic created
base:protecting_against_soft-resets [2016-01-31 22:02]
karmic
Line 26: Line 26:
   lda #$2f ;reset data-direction register, otherwise the system won't start correctly   lda #$2f ;reset data-direction register, otherwise the system won't start correctly
   sta $00   sta $00
 +  jsr $e5a8 ;optional, refresh the VIC
   jmp main ;go back to main code</​code>​   jmp main ;go back to main code</​code>​
  
 Now try soft-resetting. Instead of going back to the basic screen, instead you'll see the inc $d020 effect. Now try soft-resetting. Instead of going back to the basic screen, instead you'll see the inc $d020 effect.
 +
 +Note that if you're using the kernal NMI routine ([[http://​unusedino.de/​ec64/​technical/​aay/​c64/​romfe43.htm|$FE47]]),​ also redirect the vector at $8002.
base/protecting_against_soft-resets.txt ยท Last modified: 2016-01-31 22:02 by karmic