Fixed "Restart System" error after quitting demo

This commit is contained in:
Quinn Dunki 2015-07-16 16:01:00 -05:00
parent f6411df302
commit b8e6de7898
3 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
mousedemo.lst
Mouse.xcodeproj/project.xcworkspace/xcuserdata/qd.xcuserdatad/UserInterfaceState.xcuserstate
Mouse.xcodeproj/project.xcworkspace/xcshareddata

View File

@ -201,6 +201,9 @@ WGDisableMouse:
stz WG_MOUSEACTIVE
lda #MOUSEMODE_OFF ; Disable VBL manually
CALLMOUSE SETMOUSE
; Remove our interrupt handler via ProDOS (done playing nice!)
lda WG_PRODOS_ALLOC+1 ; Copy interrupt ID that ProDOS gave us
sta WG_PRODOS_DEALLOC+1

Binary file not shown.