Allow up 127 chars of cmdline for programs started by the loader.
This commit is contained in:
@@ -34,12 +34,12 @@
|
|||||||
MAXARGS = 10
|
MAXARGS = 10
|
||||||
|
|
||||||
; ProDOS stores the filename in the second half of BASIC's input buffer, so
|
; ProDOS stores the filename in the second half of BASIC's input buffer, so
|
||||||
; there are 128 characters left. At least 7 characters are necessary for the
|
; there are 128 characters left. At least 1 characters is necessary for the
|
||||||
; CALLxxxx:REM so 121 characters may be used before overwriting the ProDOS
|
; REM so 127 characters may be used before overwriting the ProDOS filename.
|
||||||
; filename. As we don't want to put further restrictions on the command-line
|
; As we don't want to put further restrictions on the command-line length
|
||||||
; length we reserve those 121 characters terminated by a zero.
|
; we reserve those 127 characters terminated by a zero.
|
||||||
|
|
||||||
BUF_LEN = 122
|
BUF_LEN = 128
|
||||||
|
|
||||||
BASIC_BUF = $200
|
BASIC_BUF = $200
|
||||||
FNAM_LEN = $280
|
FNAM_LEN = $280
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ PRESS_ANY_KEY:
|
|||||||
jmp :+
|
jmp :+
|
||||||
.byte $EE
|
.byte $EE
|
||||||
.byte $EE
|
.byte $EE
|
||||||
.byte 65
|
.byte $80
|
||||||
STARTUP:.res 65
|
STARTUP:.res $80
|
||||||
|
|
||||||
; Reset stack
|
; Reset stack
|
||||||
: ldx #$FF
|
: ldx #$FF
|
||||||
|
|||||||
Reference in New Issue
Block a user