File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 33; Initialisation Code
44; Author: Dean Belfield
55; Created: 04/12/2024
6- ; Last Updated: 04 /12/2024
6+ ; Last Updated: 14 /12/2024
77;
88; Modinfo:
9+ ; 14/12/2024: Fix for *BYE command
910
1011 SEGMENT __VECTORS
1112
@@ -110,7 +111,7 @@ _main: LD HL, ACCS ; Clear the ACCS
110111 LD A , C
111112 CP 2
112113 JR Z , _autoload ; 2 parameters = autoload
113- JP C , START ; 1 parameter = normal start
114+ JR C , _startbasic ; 1 parameter = normal start
114115; CALL STAR_VERSION ; Output the AGON version
115116 CALL TELL
116117 DB "Usage:\n\r"
@@ -128,8 +129,11 @@ $$: LD.LIL A, (HL) ; Fetch the filename byte
128129 DEC E
129130 LD A , CR
130131 LD (DE) , A ; Replace the 0 byte with a CR for BBC BASIC
131- JP START
132-
132+ ;
133+ _startbasic: POP HL ; Pop the return address to init off SPS
134+ PUSH .LIL HL ; Stack it on SPL (*BYE will use this as the return address)
135+ JP START ; And start BASIC
136+
133137; Parse the parameter string into a C array
134138; Parameters
135139; - A: Segment base
You can’t perform that action at this time.
0 commit comments