2019-10-16 06:09:13 +00:00
|
|
|
|
NEW
|
|
|
|
|
AUTO 3,1
|
2021-03-11 21:40:55 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
.OP 65816
|
|
|
|
|
.OR $2000
|
2022-03-13 12:52:24 +00:00
|
|
|
|
.TF PRODOS,TSYS
|
2019-11-10 18:28:06 +00:00
|
|
|
|
*--------------------------------------
|
2023-11-12 13:20:15 +00:00
|
|
|
|
KVER .EQ $23 release 2.0.3
|
2023-11-04 14:42:28 +00:00
|
|
|
|
*--------------------------------------
|
2022-04-27 19:24:41 +00:00
|
|
|
|
READCAT .EQ 1 Boot Block read Catalog at $C00
|
2019-11-10 18:28:06 +00:00
|
|
|
|
ENHFILENAME .EQ 1
|
2023-11-12 13:20:15 +00:00
|
|
|
|
DIREXTENDROOT .EQ 1
|
2019-11-10 18:28:06 +00:00
|
|
|
|
LOWERCASE .EQ 1
|
2019-12-06 07:15:51 +00:00
|
|
|
|
ACL .EQ 1
|
2020-08-30 17:50:57 +00:00
|
|
|
|
LOGO .EQ 1
|
2023-11-04 14:42:28 +00:00
|
|
|
|
AUXLC .EQ 0
|
|
|
|
|
M.PM .EQ 1
|
|
|
|
|
M.RAM .EQ 1
|
2023-11-12 13:20:15 +00:00
|
|
|
|
M.SEL .EQ 1
|
2019-10-16 06:09:13 +00:00
|
|
|
|
*--------------------------------------
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB inc/zp.i
|
|
|
|
|
.INB inc/io.i
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.INB inc/io.iigs.i
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB inc/io.d2.i
|
|
|
|
|
.INB inc/mli.i
|
|
|
|
|
.INB inc/mli.e.i
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.INB inc/rom.ii.i
|
|
|
|
|
.INB inc/rom.iie.i
|
|
|
|
|
.INB inc/rom.iigs.i
|
2019-10-16 06:09:13 +00:00
|
|
|
|
*--------------------------------------
|
2023-11-04 14:42:28 +00:00
|
|
|
|
ILDR .EQ $0800
|
|
|
|
|
|
|
|
|
|
GP .EQ $BF00
|
|
|
|
|
XRW .EQ $D000
|
|
|
|
|
CLK .EQ $D742
|
|
|
|
|
|
|
|
|
|
XDOS.PathBuf .EQ $D700
|
|
|
|
|
*XDOS.prefixbuf .EQ $D742+125
|
|
|
|
|
XDOS.FCBs .EQ $D800 8 opened files
|
|
|
|
|
XDOS.VCBs .EQ $D900 10 mounted vols
|
|
|
|
|
XDOS.BMBuf .EQ $DA00 512 byte bitmap buffer
|
|
|
|
|
XDOS.GBuf .EQ $DC00 general purpose 512 byte block buffer
|
|
|
|
|
|
|
|
|
|
XDOS .EQ $DE00
|
|
|
|
|
|
|
|
|
|
RAM .EQ $FF00
|
|
|
|
|
IRQ .EQ $FF9B
|
|
|
|
|
|
|
|
|
|
RAMX .EQ $0200
|
2019-10-16 06:09:13 +00:00
|
|
|
|
*--------------------------------------
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DUMMY
|
|
|
|
|
.OR $10
|
|
|
|
|
ZPPtr1 .BS 2
|
|
|
|
|
ZPPtr2 .BS 2
|
|
|
|
|
ZPInBufPtr .BS 2
|
|
|
|
|
ZPOutBufPtr .BS 2
|
|
|
|
|
|
|
|
|
|
ZPnCnt .BS 2
|
|
|
|
|
ZPInMask .BS 1
|
|
|
|
|
ZPBLOfsLBits .BS 1
|
|
|
|
|
ZPBLOfsHBits .BS 1
|
|
|
|
|
ZPBLLenBits .BS 1
|
|
|
|
|
.ED
|
2019-10-16 06:09:13 +00:00
|
|
|
|
*--------------------------------------
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.ldr
|
2023-11-04 14:42:28 +00:00
|
|
|
|
X.Unpak.XatYAX .DO AUXLC=1
|
|
|
|
|
.FIN
|
2019-11-10 18:28:06 +00:00
|
|
|
|
X.Unpak.XatYA sty ZPOutBufPtr
|
|
|
|
|
sta ZPOutBufPtr+1
|
|
|
|
|
lda PAKME.Table,x
|
|
|
|
|
sta ZPInBufPtr
|
|
|
|
|
lda PAKME.Table+1,x
|
2021-03-11 21:40:55 +00:00
|
|
|
|
sta ZPInBufPtr+1
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/shared/x.unpak.s
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.DO LOGO=1
|
2020-08-30 17:50:57 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.logo
|
|
|
|
|
.FIN
|
2019-11-04 07:21:40 +00:00
|
|
|
|
*--------------------------------------
|
2023-11-12 13:20:15 +00:00
|
|
|
|
PAKME.Table
|
|
|
|
|
PAKME.ID .SE 0
|
|
|
|
|
|
|
|
|
|
PAKME.ILDR.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.ILDR .DA ILDR.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.GP.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.GP .DA GP.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.XRW.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.XRW .DA XRW.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.XDOS.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.XDOS .DA XDOS.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.IRQ.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.IRQ .DA IRQ.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
.DO M.RAM=1
|
|
|
|
|
PAKME.RAM.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.RAM .DA RAM.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.RAMX.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.RAMX .DA RAMX.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
.FIN
|
|
|
|
|
|
|
|
|
|
PAKME.DCLK.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.DCLK .DA DCLK.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.NCLK.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.NCLK .DA NCLK.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.TCLK.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.TCLK .DA TCLK.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.XCLK.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.XCLK .DA XCLK.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.CCLK.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.CCLK .DA CCLK.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.SEL1.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.SEL1 .DA SEL1.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
|
|
|
|
|
PAKME.SEL2.ID .EQ PAKME.ID
|
|
|
|
|
PAKME.SEL2 .DA SEL2.PAK
|
|
|
|
|
PAKME.ID .SE PAKME.ID+2
|
|
|
|
|
*--------------------------------------
|
2020-05-25 13:58:59 +00:00
|
|
|
|
ILDR.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA ILDR.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.ildr
|
2019-10-31 06:54:28 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
GP.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA GP.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.gp
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
XRW.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA XRW.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xrw
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
XDOS.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA XDOS.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.a
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.b
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.c
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.d
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.e
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xdos.f
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
IRQ.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA IRQ.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.irq
|
2019-11-01 20:06:04 +00:00
|
|
|
|
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.DO M.RAM=1
|
2020-05-25 13:58:59 +00:00
|
|
|
|
RAM.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA RAM.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.ram
|
2019-11-01 20:06:04 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
RAMX.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA RAMX.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.ramx
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.FIN
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2021-07-26 12:33:08 +00:00
|
|
|
|
DCLK.PAK .DA #0
|
|
|
|
|
.DA DCLK.LEN
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.dclk
|
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
NCLK.PAK .DA #0
|
2019-11-04 07:21:40 +00:00
|
|
|
|
.DA NCLK.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.nclk
|
2019-11-04 07:21:40 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
TCLK.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA TCLK.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.tclk
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2022-04-19 18:24:34 +00:00
|
|
|
|
XCLK.PAK .DA #0
|
|
|
|
|
.DA XCLK.LEN
|
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.xclk
|
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
CCLK.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA CCLK.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.cclk
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
SEL1.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA SEL1.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.sel1
|
2019-10-16 06:09:13 +00:00
|
|
|
|
|
2020-05-25 13:58:59 +00:00
|
|
|
|
SEL2.PAK .DA #0
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA SEL2.LEN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
.INB usr/src/prodos.fx/prodos.s.sel2
|
2019-11-01 20:06:04 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
.AS "PAKME" TAG
|
|
|
|
|
.DA $2000 BIN ORG
|
2023-11-04 14:42:28 +00:00
|
|
|
|
.DA #PAKME.ID/2 Chunk Count
|
2019-11-01 20:06:04 +00:00
|
|
|
|
.DA PAKME.Table Chunks
|
2019-10-16 06:09:13 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2020-05-23 18:45:32 +00:00
|
|
|
|
SAVE usr/src/prodos.fx/prodos.s
|
2019-10-16 06:09:13 +00:00
|
|
|
|
ASM
|