1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Allow up 127 chars of cmdline for programs started by the loader.

This commit is contained in:
Oliver Schmidt 2015-04-19 21:16:43 +02:00
parent c3bec9368b
commit 24e902059c
2 changed files with 9 additions and 9 deletions

View File

@ -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
@ -176,4 +176,4 @@ argv: .addr FNAM
.bss .bss
buffer: .res BUF_LEN buffer: .res BUF_LEN

View File

@ -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
@ -127,7 +127,7 @@ STARTUP:.res 65
: lda STARTUP + 1,x : lda STARTUP + 1,x
: sta STACK,x : sta STACK,x
dex dex
bpl :-- bpl :--
; Provide some user feedback ; Provide some user feedback
lda #<LOADING lda #<LOADING