mirror of
https://github.com/bobbimanners/Applecorn.git
synced 2025-02-22 15:29:03 +00:00
Refactored code. Renamed source file.
This commit is contained in:
parent
08f006d607
commit
4ad57d2ac4
BIN
applecorn.po
BIN
applecorn.po
Binary file not shown.
@ -143,7 +143,7 @@ WRTAUX MAC
|
||||
PUT AUXMEM.INIT
|
||||
PUT AUXMEM.VDU
|
||||
PUT AUXMEM.HOSTFS
|
||||
PUT AUXMEM.KERNEL
|
||||
PUT AUXMEM.OSCLI
|
||||
PUT AUXMEM.BYTWRD
|
||||
PUT AUXMEM.CHARIO
|
||||
PUT AUXMEM.MISC
|
||||
|
@ -352,6 +352,33 @@ BYTE85 LDY #$80 ; $85 = top user mem for mode
|
||||
BYTE8B LDA #$00 ; $8B = *OPT
|
||||
JMP (FSCV) ; Hand over to filing system
|
||||
|
||||
* OSBYTE $8E - Enter language ROM
|
||||
*
|
||||
BYTE8E PHP ; Save CLC=RESET, SEC=Not RESET
|
||||
LDA #$08
|
||||
STA FAULT+0
|
||||
LDA #$80
|
||||
STA FAULT+1
|
||||
JSR PRERR ; Print ROM name with PRERR to set FAULT
|
||||
JSR OSNEWL
|
||||
JSR OSNEWL
|
||||
PLP ; Get entry type back
|
||||
LDA #$01
|
||||
JMP AUXADDR
|
||||
|
||||
* OSBYTE $8F - Issue service call
|
||||
* X=service call, Y=parameter
|
||||
*
|
||||
BYTE8F TXA
|
||||
SERVICE LDX #$0F
|
||||
BIT $8006
|
||||
BPL :SERVSKIP ; No service entry
|
||||
JSR $8003 ; Call service entry
|
||||
TAX
|
||||
BEQ :SERVDONE
|
||||
:SERVSKIP LDX #$FF
|
||||
:SERVDONE RTS
|
||||
|
||||
BYTEDA RTS ; $DA = clear VDU queue
|
||||
|
||||
BYTEEA LDX #$00 ; No tube
|
||||
|
@ -1,40 +1,7 @@
|
||||
*********************************************************
|
||||
* AppleMOS Kernel
|
||||
*********************************************************
|
||||
|
||||
* KERNEL/SWROM.S
|
||||
****************
|
||||
|
||||
* OSBYTE $8E - Enter language ROM
|
||||
* AUXMEM.OSCLI.S
|
||||
* (c) BOBBI 2021 GPLv3
|
||||
*
|
||||
BYTE8E PHP ; Save CLC=RESET, SEC=Not RESET
|
||||
LDA #$08
|
||||
STA FAULT+0
|
||||
LDA #$80
|
||||
STA FAULT+1
|
||||
JSR PRERR ; Print ROM name with PRERR to set FAULT
|
||||
JSR OSNEWL
|
||||
JSR OSNEWL
|
||||
PLP ; Get entry type back
|
||||
LDA #$01
|
||||
JMP AUXADDR
|
||||
|
||||
* OSBYTE $8F - Issue service call
|
||||
* X=service call, Y=parameter
|
||||
*
|
||||
BYTE8F TXA
|
||||
SERVICE LDX #$0F
|
||||
BIT $8006
|
||||
BPL :SERVSKIP ; No service entry
|
||||
JSR $8003 ; Call service entry
|
||||
TAX
|
||||
BEQ :SERVDONE
|
||||
:SERVSKIP LDX #$FF
|
||||
:SERVDONE RTS
|
||||
|
||||
|
||||
* KERNEL/OSCLI.S
|
||||
****************
|
||||
* Handle OSCLI system calls
|
||||
|
||||
* OSCLI HANDLER
|
||||
* On entry, XY=>command string
|
||||
@ -436,5 +403,3 @@ CLRCB LDA #$00
|
||||
BNE :L1
|
||||
RTS
|
||||
|
||||
|
||||
|
2
extract
2
extract
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
for file in APPLECORN AUXMEM.BYTWRD AUXMEM.CHARIO AUXMEM.HOSTFS AUXMEM.INIT AUXMEM.KERNEL AUXMEM.MISC AUXMEM.MOSEQU AUXMEM.VDU LOADER MAINMEM MAIN.ROMMENU; do
|
||||
for file in APPLECORN AUXMEM.BYTWRD AUXMEM.CHARIO AUXMEM.HOSTFS AUXMEM.INIT AUXMEM.MISC AUXMEM.MOSEQU AUXMEM.OSCLI AUXMEM.VDU LOADER MAINMEM MAIN.ROMMENU; do
|
||||
cadius extractfile applecorn.po /APPLECORN/${file}.S .
|
||||
rm _FileInformation.txt
|
||||
cadius clearhighbit ${file}.S\#040000
|
||||
|
Loading…
x
Reference in New Issue
Block a user