From 80a7a8df00c48095bf73faaf9ef28cc86dbbfb11 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Mon, 2 Jan 2012 11:09:25 +0000 Subject: [PATCH] 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 --- libsrc/apple2/exec.s | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libsrc/apple2/exec.s b/libsrc/apple2/exec.s index f34c4e362..2660b6f86 100644 --- a/libsrc/apple2/exec.s +++ b/libsrc/apple2/exec.s @@ -188,12 +188,6 @@ source: jsr $BF00 ; Go for it ... jmp (data_buffer) - ; Quit to ProDOS dispatcher -quit = * - source + target -: jsr $BF00 - .byte $65 ; QUIT - .word quit_param - read_param = * - source + target .byte $04 ; PARAM_COUNT read_ref = * - source + target @@ -208,6 +202,12 @@ close_param = * - source + target close_ref = * - source + target .byte $00 ; REF_NUM + ; Quit to ProDOS dispatcher +quit = * - source + target +: jsr $BF00 + .byte $65 ; QUIT + .word quit_param + quit_param = * - source + target .byte $04 ; PARAM_COUNT .byte $00 ; QUIT_TYPE @@ -215,8 +215,8 @@ quit_param = * - source + target .byte $00 ; RESERVED .word $0000 ; RESERVED -size = * - source +size = * - source -target = DOSWARM - size +target = DOSWARM - size dosvec: jmp quit -- 2.39.5