mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
Allow up 127 chars of cmdline for programs started by the loader.
This commit is contained in:
parent
c3bec9368b
commit
24e902059c
@ -34,12 +34,12 @@
|
||||
MAXARGS = 10
|
||||
|
||||
; 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
|
||||
; CALLxxxx:REM so 121 characters may be used before overwriting the ProDOS
|
||||
; filename. As we don't want to put further restrictions on the command-line
|
||||
; length we reserve those 121 characters terminated by a zero.
|
||||
; there are 128 characters left. At least 1 characters is necessary for the
|
||||
; REM so 127 characters may be used before overwriting the ProDOS filename.
|
||||
; As we don't want to put further restrictions on the command-line length
|
||||
; we reserve those 127 characters terminated by a zero.
|
||||
|
||||
BUF_LEN = 122
|
||||
BUF_LEN = 128
|
||||
|
||||
BASIC_BUF = $200
|
||||
FNAM_LEN = $280
|
||||
@ -176,4 +176,4 @@ argv: .addr FNAM
|
||||
|
||||
.bss
|
||||
|
||||
buffer: .res BUF_LEN
|
||||
buffer: .res BUF_LEN
|
||||
|
@ -95,8 +95,8 @@ PRESS_ANY_KEY:
|
||||
jmp :+
|
||||
.byte $EE
|
||||
.byte $EE
|
||||
.byte 65
|
||||
STARTUP:.res 65
|
||||
.byte $80
|
||||
STARTUP:.res $80
|
||||
|
||||
; Reset stack
|
||||
: ldx #$FF
|
||||
@ -127,7 +127,7 @@ STARTUP:.res 65
|
||||
: lda STARTUP + 1,x
|
||||
: sta STACK,x
|
||||
dex
|
||||
bpl :--
|
||||
bpl :--
|
||||
|
||||
; Provide some user feedback
|
||||
lda #<LOADING
|
||||
|
Loading…
x
Reference in New Issue
Block a user