mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-21 17:31:31 +00:00
Refix ProDOS clock input buffer
This commit is contained in:
parent
22f22a382b
commit
72533c9ad9
BIN
PLASMA-SYS2.PO
BIN
PLASMA-SYS2.PO
Binary file not shown.
@ -1328,6 +1328,7 @@ end
|
|||||||
// Command line processor
|
// Command line processor
|
||||||
//
|
//
|
||||||
def docmds#0
|
def docmds#0
|
||||||
|
strcpy(getlnbuf, @cmdln)
|
||||||
while 1
|
while 1
|
||||||
if ^getlnbuf
|
if ^getlnbuf
|
||||||
strcpy(@cmdln, getlnbuf)
|
strcpy(@cmdln, getlnbuf)
|
||||||
@ -1406,7 +1407,7 @@ syscmdln = @cmdln
|
|||||||
//
|
//
|
||||||
autorun = open(@autorun)
|
autorun = open(@autorun)
|
||||||
if autorun
|
if autorun
|
||||||
^getlnbuf = read(autorun, getlnbuf + 1, 128)
|
cmdln = read(autorun, @cmdln+1, 81)
|
||||||
close(0)
|
close(0)
|
||||||
else
|
else
|
||||||
//
|
//
|
||||||
|
@ -1399,6 +1399,7 @@ def docmds#0
|
|||||||
loadmod(jitmod) // Cannot do this in init code - it will overwrite it!
|
loadmod(jitmod) // Cannot do this in init code - it will overwrite it!
|
||||||
xheap = $0400 // Reset heap to point at low memory
|
xheap = $0400 // Reset heap to point at low memory
|
||||||
xheaptop = $A000 // Top below JITC
|
xheaptop = $A000 // Top below JITC
|
||||||
|
strcpy(getlnbuf, @cmdln)
|
||||||
while 1
|
while 1
|
||||||
if ^getlnbuf
|
if ^getlnbuf
|
||||||
strcpy(@cmdln, getlnbuf)
|
strcpy(@cmdln, getlnbuf)
|
||||||
@ -1477,7 +1478,7 @@ syscmdln = @cmdln
|
|||||||
//
|
//
|
||||||
autorun = open(@autorun)
|
autorun = open(@autorun)
|
||||||
if autorun
|
if autorun
|
||||||
^getlnbuf = read(autorun, getlnbuf + 1, 128)
|
cmdln = read(autorun, @cmdln+1, 81)
|
||||||
close(0)
|
close(0)
|
||||||
else
|
else
|
||||||
//
|
//
|
||||||
|
@ -8,10 +8,16 @@ LCBNK1 = $08
|
|||||||
JITCOMP = $03E2
|
JITCOMP = $03E2
|
||||||
JITCODE = $03E4
|
JITCODE = $03E4
|
||||||
!SOURCE "vmsrc/plvmzp.inc"
|
!SOURCE "vmsrc/plvmzp.inc"
|
||||||
|
JMP CMDMOVE
|
||||||
|
_CMDBEGIN = *
|
||||||
|
!PSEUDOPC $1000 {
|
||||||
|
!SOURCE "vmsrc/apple/cmdjit.a"
|
||||||
|
_CMDEND = *
|
||||||
|
}
|
||||||
;*
|
;*
|
||||||
;* MOVE CMD DOWN TO $1000-$2000
|
;* MOVE CMD DOWN TO $1000-$2000
|
||||||
;*
|
;*
|
||||||
LDA #<_CMDBEGIN
|
CMDMOVE LDA #<_CMDBEGIN
|
||||||
STA SRCL
|
STA SRCL
|
||||||
LDA #>_CMDBEGIN
|
LDA #>_CMDBEGIN
|
||||||
STA SRCH
|
STA SRCH
|
||||||
@ -19,6 +25,7 @@ JITCODE = $03E4
|
|||||||
STY DSTL
|
STY DSTL
|
||||||
LDX #$10
|
LDX #$10
|
||||||
STX DSTH
|
STX DSTH
|
||||||
|
INX
|
||||||
- LDA (SRC),Y
|
- LDA (SRC),Y
|
||||||
STA (DST),Y
|
STA (DST),Y
|
||||||
INY
|
INY
|
||||||
@ -44,8 +51,3 @@ JITCODE = $03E4
|
|||||||
TXS
|
TXS
|
||||||
LDX #ESTKSZ/2 ; INIT EVAL STACK INDEX
|
LDX #ESTKSZ/2 ; INIT EVAL STACK INDEX
|
||||||
JMP $1000
|
JMP $1000
|
||||||
_CMDBEGIN = *
|
|
||||||
!PSEUDOPC $1000 {
|
|
||||||
!SOURCE "vmsrc/apple/cmdjit.a"
|
|
||||||
_CMDEND = *
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user