# HG changeset patch # User boisy # Date 1018073387 0 # Node ID 6b140c61492c75420e0415fb37a423bed42d76fb # Parent 364868eddbc7d330b3e12322143f70f0b04ff206 Modified dump.asm slightly for better commenting Added newly disassembled grfo.asm, changed makefile diff -r 364868eddbc7 -r 6b140c61492c level1/cmds/dump.asm --- a/level1/cmds/dump.asm Fri Apr 05 23:55:08 2002 +0000 +++ b/level1/cmds/dump.asm Sat Apr 06 06:09:47 2002 +0000 @@ -60,10 +60,10 @@ fcb C$CR L00F0 lda ,x+ - cmpa #$20 + cmpa #C$SPAC beq L00F0 - leax -$01,x - cmpa #$0D + leax -1,x + cmpa #C$CR rts start lda #63 @@ -95,7 +95,7 @@ bsr L00F0 beq L0147 lda #WRITE. - ldb #$0B + ldb #PREAD.+UPDAT. os9 I$Create lbcs L01FE sta L0022,pcr + lda a,x +L0267 sta <$4E,u + cmpa <$47,u + lbeq L0346 + ldd <$45,u +L0274 suba #$01 + bcs L027F + lbsr L0351 + bcs L027F + beq L0274 +L027F inca + std $01,s +L0282 lbsr L0384 + adda #$01 + bcs L0290 + lbsr L0351 + bcs L0290 + beq L0282 +L0290 deca + ldx $01,s + lbsr L03D3 + neg <$4F,u + lbsr L03D3 +L029C lbsr L03F9 + lbcs L0346 + tst <$4F,u + bpl L02B3 + subb #$01 + bcs L029C + std $03,s + tfr x,d + decb + bra L02BD +L02B3 incb + cmpb #$BF + bhi L029C + std $03,s + tfr x,d + incb +L02BD std $01,s + lbsr L0351 + bcs L029C +L02C4 bne L02D2 + suba #$01 + bcc L02CD + inca + bra L02D6 +L02CD lbsr L0351 + bcc L02C4 +L02D2 adda #$01 + bcs L029C +L02D6 cmpd $03,s + bhi L029C + bsr L0351 + bcs L029C + bne L02D2 + std $05,s + cmpd $01,s + bcc L02FB + ldd $01,s + decb + cmpd $05,s + beq L02FB + neg <$4F,u + ldx $05,s + lbsr L03D3 + neg <$4F,u +L02FB ldd $05,s +L02FD std $01,s +L02FF bsr L0351 + bcs L030B + bne L030B + bsr L0384 + adda #$01 + bcc L02FF +L030B deca + ldx $01,s + lbsr L03D3 + std $05,s + adda #$01 + bcs L0326 +L0317 cmpd $03,s + bcc L0326 + adda #$01 + bsr L0351 + bcs L0326 + bne L0317 + bra L02FD +L0326 inc $03,s + inc $03,s + ldd $03,s + cmpa #$02 + lbcs L029C + ldd $05,s + cmpd $03,s + lbcs L029C + neg <$4F,u + ldx $03,s + lbsr L03D3 + lbra L029C +L0346 leas $07,s + clrb + ldb <$41,u + beq L0350 +L034E orcc #$01 +L0350 rts +L0351 pshs b,a + cmpb #$BF + bhi L0380 + tst <$24,u + bmi L0360 + cmpa #$7F + bhi L0380 +L0360 jsr [<$5D,u] + tfr a,b + andb ,x +L0367 bita #$01 + bne L0376 + lsra + lsrb + tst <$24,u + bmi L0367 + lsra + lsrb + bra L0367 +L0376 stb <$4C,u + cmpb <$4D,u + andcc #$FE + puls pc,b,a +L0380 orcc #$01 + puls pc,b,a +L0384 pshs b,a + jsr [<$5D,u] + bita #$80 + beq L03A6 + ldb <$4E,u + cmpb ,x + bne L03A6 + ldb <$47,u + stb ,x + puls b,a + tst <$24,u + bmi L03A3 + adda #$03 + rts +L03A3 adda #$07 + rts +L03A6 lbsr L0081 + puls pc,b,a +L03AB ldx <$3F,u + beq L03B5 + stx <$3D,u +L03B3 clrb + rts +L03B5 pshs u + ldd #$0200 + os9 F$SRqMem + bcc L03C1 + puls pc,u +L03C1 tfr u,d + puls u + std <$3B,u + addd #$0200 + std <$3F,u + std <$3D,u + bra L03B3 +L03D3 pshs b,a + ldd <$3D,u + subd #$0004 + cmpd <$3B,u + bcs L03F2 + std <$3D,u + tfr d,y + lda <$4F,u + sta ,y + stx $01,y + puls b,a + sta $03,y + rts +L03F2 ldb #$F5 + stb <$41,u + puls pc,b,a +L03F9 ldd <$3D,u + cmpd <$3F,u + lbcc L034E + tfr d,y + addd #$0004 + std <$3D,u + lda ,y + sta <$4F,u + ldd $01,y + tfr d,x + lda $03,y + andcc #$FE + rts + + emod +eom equ * + end + diff -r 364868eddbc7 -r 6b140c61492c level1/cmds/makefile --- a/level1/cmds/makefile Fri Apr 05 23:55:08 2002 +0000 +++ b/level1/cmds/makefile Sat Apr 06 06:09:47 2002 +0000 @@ -2,7 +2,7 @@ DEPENDS = ./Makefile -CMDS = asm attr backup binex build copy date del deldir dir display dump echo exbin free ident link list \ +CMDS = asm attr backup binex build copy date del deldir dir display dump echo exbin free grfo ident link list \ load login makdir mdir mfree printerr procs pwd pxd rename save setime shell sleep tee unlink verify ALLOBJS = $(CMDS)