Looking At Your Code - HP H8/3003 User Manual

Emulator terminal interface
Table of Contents

Advertisement

Looking at Your
Code
0001000
-
0001006
-
000100c
-
000100e
-
0001014
-
000101a
-
000101c
-
000101e
-
0001020
-
0001024
-
0001026
-
000102a
-
000102e
-
0001030
-
0001036
-
000103a
-
000103c
-
0001042
-
0001046
-
0001048
-
000104e
-
0001054
-
0001056
-
0001058
-
000105a
-
000105c
-
000105e
-
0001064
-
0001066
-
0001068
-
000106a
-
000106c
-
000106e
-
2-18 Getting Started
Now that you have loaded your code into emulation memory, you can
display it in mnemonic format. Type:
R> m -dm 1000..106f
You will see:
MOV.L #000ff904,ER7
MOV.L #000ff800,ER1
MOV.B #00,R0L
MOV.B R0L,@0ff800
MOV.B @0ff800,R2L
CMP.B #00,R2L
BEQ 001014
CMP.B #41,R2L
BEQ 00102e
CMP.B #42,R2L
BEQ 00103a
BRA 001046
MOV.B #11,R3L
MOV.L #00002000,ER4
BRA 00104e
MOV.B #11,R3L
MOV.L #00002011,ER4
BRA 00104e
MOV.B #0f,R3L
MOV.L #00002022,ER4
MOV.L #000ff804,ER5
MOV.B #20,R6L
MOV.B R0L,@ER5
ADDS #1,ER5
DEC.B R6L
BNE 001056
MOV.L #000ff804,ER5
MOV.B @ER4+,R6L
MOV.B R6L,@ER5
ADDS #1,ER5
DEC.B R3L
BNE 001064
BRA 00100c

Advertisement

Table of Contents
loading

Table of Contents