# HG changeset patch # User boisy # Date 1025980863 0 # Node ID a32b730f4c7172358bd437a0b9bd5fe669f7c9fc # Parent 6ed78a2da265e7186c479298081ccd638d6a9897 Added debug.asm diff -r 6ed78a2da265 -r a32b730f4c71 level1/cmds/debug.asm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/level1/cmds/debug.asm Sat Jul 06 18:41:03 2002 +0000 @@ -0,0 +1,1010 @@ +******************************************************************** +* debug - 6809 debugger +* +* $Id$ +* +* Ed. Comments Who YY/MM/DD +* ------------------------------------------------------------------ +* 6 Original Tandy version + + nam debug + ttl 6809 debugger + +* Disassembled 02/07/06 13:05:58 by Disasm v1.6 (C) 1988 by RML + + ifp1 + use defsfile + endc + +tylg set Prgrm+Objct +atrv set ReEnt+rev +rev set $01 + +L0000 mod eom,name,tylg,atrv,start,size + +u0000 rmb 1 +u0001 rmb 1 +u0002 rmb 1 +u0003 rmb 1 +u0004 rmb 2 +u0006 rmb 2 +u0008 rmb 1 +u0009 rmb 1 +u000A rmb 1 +u000B rmb 1 +u000C rmb 4 +u0010 rmb 14 +u001E rmb 2 +u0020 rmb 1 +u0021 rmb 19 +u0034 rmb 4 +u0038 rmb 9 +u0041 rmb 1 +u0042 rmb 1 +u0043 rmb 1 +u0044 rmb 3 +u0047 rmb 4 +u004B rmb 1 +u004C rmb 1 +u004D rmb 4 +u0051 rmb 2 +u0053 rmb 2 +u0055 rmb 3 +u0058 rmb 1 +u0059 rmb 6 +u005F rmb 39 +u0086 rmb 20 +u009A rmb 4 +u009E rmb 9 +u00A7 rmb 18 +u00B9 rmb 67 +u00FC rmb 260 +size equ . + +name fcs /debug/ + fcb $06 + +L0013 bsr L0021 + bra L0019 +L0017 bsr L0027 +L0019 pshs a + lda #$20 + sta ,x+ + puls pc,a +L0021 exg a,b + bsr L0027 + tfr a,b +L0027 pshs b + andb #$F0 + lsrb + lsrb + lsrb + lsrb + bsr L0035 + puls b + andb #$0F +L0035 cmpb #$09 + bls L003B + addb #$07 +L003B addb #$30 + stb ,x+ + rts +L0040 pshs u,y,b + leau L0322,pcr +L02E6 lda ,y + ldb $01,y + bne L02F8 + cmpa ,x + beq L0307 + adda #$20 + cmpa ,x + beq L0307 + bra L0318 +L02F8 cmpd ,x + beq L0305 + addd #$2020 + cmpd ,x + bne L0318 +L0305 leax $01,x +L0307 leax $01,x + lda $02,y + tfr a,b + andb #$0F + ldy size,u + leas -$0C,s + sts L0765,pcr + sty $0A,s + lda #$80 + sta ,s + tfr s,x + leax >-$0145,x + stx L0652,pcr + lda #$01 + os9 F$SSWi + os9 F$Icpt + lbsr L07E1 + ldx L0766,pcr + bsr L03C2 + lbsr L07E3 +L038A leay >L077B,pcr + lbsr L07EF + lbsr L0807 + leay >L07AD,pcr + lda ,x + cmpa #$61 + bcs L03A2 + suba #$20 + sta ,x +L03A2 leay $03,y + lda ,y + beq L03B8 + cmpa ,x + bne L03A2 + leax $01,x + ldd $01,y + leau >L0000,pcr + jsr d,u + bra L038A +L03B8 ldb #$09 + bsr L03BE + bra L038A +L03BE os9 F$PErr + rts +L03C2 lbra L0190 + lda ,x + cmpa #$2E + bne L03CF + ldd L0780,pcr + bsr L03C2 + puls pc,b,a + lbsr L0195 + bcs L03BE + bsr L0415 + pshs b,a + lda #$24 + sta ,x+ + lda ,s + lbsr L0013 + lda #$23 + sta ,x+ + puls b,a + lbsr L0040 + lbra L07E3 +L043F lbsr L0195 + bcs L044B + tsta + beq L044B + ldb #$08 + orcc #$01 +L044B rts + lbsr L0512 + beq L04AF + lbsr L02C3 + lbcs L03BE + pshs y,a + lbsr L0512 + bne L0475 + bsr L0415 + puls y,a + tsta + bpl L046D + ldd ,y + lbsr L0021 + bra L0472 +L046D ldb ,y + lbsr L0027 +L0472 lbra L07E3 +L0475 lda ,s+ + bpl L0485 + lbsr L0195 + puls y + lbcs L054E + std ,y + rts +L0485 bsr L043F + puls y + lbcs L054E + stb ,y + rts +L0490 fcc "PC=" + fcb $00 + fcc "A=" + fcb $00 + fcc "B=" + fcb $00 + fcc "CC=" + fcb $00 + fcc "DP=" + fcb $00 + fcc "SP=" + fcb $00 + fcc "X=" + fcb $00 + fcc "Y=" + fcb $00 + fcc "U=" + fcb $00 + +L04AF fcb $34,$40 + ldx L07A9,pcr + lbsr L03C2 + lbsr L07E3 + lbsr L04AF + lbra L038A + bsr L06B0 + lbcs L03BE + ldx $6865 + inc $0C,s + neg