mirror of
https://github.com/cc65/cc65.git
synced 2025-08-13 08:25:28 +00:00
Moving the quit-hook towards the end of page 3 as far as possible slightly increases the compatibility with BIN programs making use of page 3 themselves.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5358 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -188,12 +188,6 @@ source: jsr $BF00
|
|||||||
; Go for it ...
|
; Go for it ...
|
||||||
jmp (data_buffer)
|
jmp (data_buffer)
|
||||||
|
|
||||||
; Quit to ProDOS dispatcher
|
|
||||||
quit = * - source + target
|
|
||||||
: jsr $BF00
|
|
||||||
.byte $65 ; QUIT
|
|
||||||
.word quit_param
|
|
||||||
|
|
||||||
read_param = * - source + target
|
read_param = * - source + target
|
||||||
.byte $04 ; PARAM_COUNT
|
.byte $04 ; PARAM_COUNT
|
||||||
read_ref = * - source + target
|
read_ref = * - source + target
|
||||||
@@ -208,6 +202,12 @@ close_param = * - source + target
|
|||||||
close_ref = * - source + target
|
close_ref = * - source + target
|
||||||
.byte $00 ; REF_NUM
|
.byte $00 ; REF_NUM
|
||||||
|
|
||||||
|
; Quit to ProDOS dispatcher
|
||||||
|
quit = * - source + target
|
||||||
|
: jsr $BF00
|
||||||
|
.byte $65 ; QUIT
|
||||||
|
.word quit_param
|
||||||
|
|
||||||
quit_param = * - source + target
|
quit_param = * - source + target
|
||||||
.byte $04 ; PARAM_COUNT
|
.byte $04 ; PARAM_COUNT
|
||||||
.byte $00 ; QUIT_TYPE
|
.byte $00 ; QUIT_TYPE
|
||||||
@@ -215,8 +215,8 @@ quit_param = * - source + target
|
|||||||
.byte $00 ; RESERVED
|
.byte $00 ; RESERVED
|
||||||
.word $0000 ; RESERVED
|
.word $0000 ; RESERVED
|
||||||
|
|
||||||
size = * - source
|
size = * - source
|
||||||
|
|
||||||
target = DOSWARM - size
|
target = DOSWARM - size
|
||||||
|
|
||||||
dosvec: jmp quit
|
dosvec: jmp quit
|
||||||
|
Reference in New Issue
Block a user