====== DELDIR ======
Header for : Deldir
Module size: $27C #636
Module CRC : $16BD56 (Good)
Hdr parity : $56
Exec. off : $0014 #20
Data size : $019A #410
Edition : $03 #3
Ty/La At/Rv: $11 $81
Prog mod, 6809 Obj, re-ent, R/O
===== CODE =====
* Disassembly by Os9disasm of deldir
mod L027c,L000d,$11,$81,L0014,D019a
* OS-9 system function equates
F$Fork equ $03
F$Wait equ $04
F$Exit equ $06
F$PrsNam equ $10
I$Open equ $84
I$ChgDir equ $86
I$Delete equ $87
I$Seek equ $88
I$Read equ $89
I$ReadLn equ $8b
I$WritLn equ $8c
I$GetStt equ $8d
I$Close equ $8f
* class D external label equates
Dffff equ $ffff
* OS9 data area definitions
D0000 rmb 2
D0002 rmb 1
D0003 rmb 12
D000f rmb 17
D0020 rmb 14
D002e rmb 6
D0034 rmb 15
D0043 rmb 1
D0044 rmb 1
D0045 rmb 1
D0046 rmb 2
D0048 rmb 4
D004c rmb 65
D008d rmb 269
D019a equ .
L000d lsra
fcb $65
inc 4,s
rol [,-s]
com D008d
L0014 equ *-1
abx
bcs L0042
bsr L0091
bcc L002b
lbsr L010c
bcs L0042
lbsr L01c3
bcs L0042
lbsr L0242
bcs L0042
L002b lda D0002
os9 I$Close
bcs L004d
ldx D0000
os9 I$Delete
bcs L004d
lda ,x
cmpa #$0d
bne L0014
clrb
bra L004d
L0042 pshs b
lda D0002
os9 I$Close
puls b
orcc #1
L004d os9 F$Exit
stx D0000
lda #3
os9 I$Open
bcs L005d
sta D0002
bra L0089
L005d ldx D0000
lda #$81
os9 I$Open
bcs L0090
sta D0002
L0068 ldx D0000
os9 F$PrsNam
clra
incb
std D0046
lda ,y
cmpa #$2f
bne L0089
lda #$0d
sta ,y+
lda #3
ldx D0000
os9 I$ChgDir
bcs L0090
sty D0000
bra L0068
L0089 leax -28,u
stx D0044
clr D0003
L0090 rts
L0091 lda D0002
ldb #0
leax 4,u
os9 I$GetStt
bcs L00ab
ldx D0044
lda 51,x
anda #$80
beq L00aa
clrb
orcc #1
bra L00ab
L00aa clrb
L00ab rts
L00ac dec D0044
fcb $65
inc 5,s
lsr $696e
fcb $67
bra L011b
rol -14,s
fcb $65
com -12,s
clr -14,s
rol $2066
rol 12,s
fcb $65
bgt L00e6
dec D004c
rol -13,s
lsr $2064
rol -14,s
fcb $65
com -12,s
clr -14,s
rol $2c20
lsr 5,s
inc 5,s
lsr $6520
lsr 9,s
fcb $72
fcb $65
com -12,s
clr -14,s
L00e6 rol $2c20
clr -14,s
bra L015e
fcb $75
rol -12,s
bra L0131
bra L011c
inc D000f,y
lsr D000f,y
fcb $71
bvs L011b
L00fb dec D0043
clr 14,s
lsr $696e
fcb $75
fcb $65
swi
bra L012f
rol $2f6e
bvs L012c
L010c tstb
bne L013e
lda #1
leax
===== RTS =====
Return to [[:OS-9:]] or [[:Top:]]