Example Session Using ZSIM
8-37
The first field is the cycle count number (enclosed by ‘< >’).
The second field is the instruction sequence number (in parenthesis).
The third field is the program counter (PC) of the executed
instruction.
The fourth field is the instruction opcode.
The fifth field is the disassembled instruction, including operands.
The sixth field describes the result of the executed instruction.
zsim{11}>
run 7; show pipe
<20> (13) 0x2010 2501 movl r5, 0x1 ! r5 = 0x2001
<20> (14) 0x2011 b91d mov r13, rpc ! r13 = 0x200d
<21> (15) 0x2012 3500 movh r5, 0x0 ! r5 = 0x0001
<21> (16) 0x2013 6fdc stu r13, r12, -1 ! INT-DATA[0xf7fb] = 0x200d
<21> (16) 0x2013 6fdc stu r13, r12, -1 ! r12 = 0xf7fa
<22> (17) 0x2014 a0cf add r12, 0xffff ! hwflag = 0x0040
<22> (17) 0x2014 a0cf add r12, 0xffff ! r12 = 0xf7f9
<22> (19) 0x2016 1060 call 0x20d6 ! rpc = 0x2017
<23> (18) 0x2015 615c st r5, r12, 1 ! INT-DATA[0xf7fa] = 0x0001
<25> (20) 0x20d6 a641 mov r4, 0x1 ! r4 = 0x0001
<26> (21) 0x20d7 b91d mov r13, rpc ! r13 = 0x2017
<26> (22) 0x20d8 6fdc stu r13, r12, -1 ! INT-DATA[0xf7f9] = 0x2017
<26> (22) 0x20d8 6fdc stu r13, r12, -1 ! r12 = 0xf7f8
<27> (23) 0x20d9 bc6c mov r6, r12 ! r6 = 0xf7f8
CYCLE=000027 PC=0x20dc
CYCLE: 27
------------------------------------------ F(4:3)
(33)20ea:bc34:0:mov r3, r4
(32)20e9:6f7c:1:stu r7, r12, -1
(31)20e8:b910:1:mov r0, rpc
(30)20e7:6b2c:1:stdu r2.e, r12, -2
------------------------------------------ G(4:3)
(29)20e6:3d00:0:movh r13, 0x0
(28)20e5:6b0c:1:stdu r0.e, r12, -2
(27)20e4:2d68:1:movl r13, 0x68
(26)20dc:1004:1:call 0x20e4
------------------------------------------ R(1:1)
(25)20db:a063:1:add r6, 0x3
------------------------------------------ E(2:2)
(24)20da:725c:1:ld r5, r12, 2
(23)20d9:bc6c:1:mov r6, r12
------------------------------------------ W(2:2)
(22)20d8:6fdc:1:stu r13, r12, -1
(21)20d7:b91d:1:mov r13, rpc
zsim{12}>
show reg gpr
r0 = 0x0000 r1 = 0x0000
r2 = 0x0000 r3 = 0x0000
r4 = 0x0001 r5 = 0x0001