Improved debugger messages for bus and memory accesses

This commit is contained in:
Jeff 2016-10-04 10:45:18 -07:00 committed by Jeff Parsons
commit 7923529aee
7 changed files with 457 additions and 391 deletions

View file

@ -9,5 +9,5 @@
<ram id="ram" addr="0x10000" size="0x34000"/>
<device id="unibus" name="unibus"/>
<panel ref="/devices/pdp11/panel/1170/wide.xml"/>
<debugger id="debugger" base="8" messages="bus|trap" commands="bp 140270"/>
<debugger id="debugger" base="8" messages="bus|mem|trap" commands="bp 140270"/>
</machine>

View file

@ -3,15 +3,22 @@
; REBASE HIGHER LINK/BOT:140000
; WANT PERFORMANCE COUNTER - CLOCK TICKS TO DO SOMETHING?
PSW = 177776
DL11_XCSR = 177564
DL11_VEC = 64
KW11_LKS = 177546
KW11_VEC = 100
START: RESET ; 140000
CLR @#177776
CLR @#PSW
MOV #START,SP
CLR @#177564
CLR @#DL11_XCSR ; CLEAR THE XCSR
MOV #BANNER,R0
JSR PC,PRINT
MOV #CLKAST,@#100
MOV #340,@#102
BIS #100,@#177546 ; SET CLOCK TICKING
MOV #CLKAST,@#KW11_VEC
MOV #340,@#KW11_VEC+2
BIS #100,@#KW11_LKS ; SET CLOCK TICKING
MOV #PROMPT,R0
JSR PC,PRINT
@ -35,20 +42,20 @@ CLKAST: ; 140124
RTT
ONECHR:
TSTB @#177564 ; 140132
TSTB @#DL11_XCSR ; 140132
BPL ONECHR
MOVB R0,@#177566
RTS PC
PRTPTR: .WORD 0
PRTPTR: .WORD 0 ; 140146
PRINT: ; 140150
BITB #100,@#177564
BITB #100,@#DL11_XCSR
BNE PRINT
MOV R0,PRTPTR
MOV #PRTAST,@#64
MOV #200,@#66
BISB #100,@#177564
MOV #PRTAST,@#DL11_VEC
MOV #200,@#DL11_VEC+2
BISB #100,@#DL11_XCSR
RTS PC
PRTAST: ; 140210