@@ -7,13 +7,13 @@ let update_link_register cpu _ops =
77 examples: 4b ff fe f0 b .+67108592 4b ff fe f2 ba 67108592 4b ff fe f1 bl
88 .+67108592 4b ff fe f3 bla 67108592 *)
99let b cpu ops =
10- let im = signed imm ops.(0 ) in
10+ let im = signed imm_32 ops.(0 ) in
1111 let tm = signed var cpu.word_width in
1212 let sh = unsigned const byte 2 in
1313 RTL. [ tm := last (im << sh) 26 ; cpu.jmp (cpu.pc + tm) ]
1414
1515let ba cpu ops =
16- let im = signed imm ops.(0 ) in
16+ let im = signed imm_32 ops.(0 ) in
1717 let tm = signed var cpu.word_width in
1818 let sh = unsigned const byte 2 in
1919 RTL. [ tm := last (im << sh) 26 ; cpu.jmp tm ]
@@ -25,9 +25,9 @@ let bla = update_link_register ^ ba
2525 3.0 B examples: 42 9f 00 04 bc 20, 31, .+4 42 9f 00 06 bca 20, 31, 4 42 9f
2626 00 05 bcl 20, 31, .+4 42 9f 00 07 bcla 20, 31, 4 *)
2727let bc cpu ops =
28- let bo = unsigned imm ops.(0 ) in
28+ let bo = unsigned imm_32 ops.(0 ) in
2929 let bi = unsigned cpu.reg ops.(1 ) in
30- let bd = signed imm ops.(2 ) in
30+ let bd = signed imm_32 ops.(2 ) in
3131 let sh = unsigned const byte 2 in
3232 let ctr_ok = unsigned var bit in
3333 let cond_ok = unsigned var bit in
@@ -44,9 +44,9 @@ let bc cpu ops =
4444 ]
4545
4646let bca cpu ops =
47- let bo = unsigned imm ops.(0 ) in
47+ let bo = unsigned imm_32 ops.(0 ) in
4848 let bi = unsigned cpu.reg ops.(1 ) in
49- let bd = signed imm ops.(2 ) in
49+ let bd = signed imm_32 ops.(2 ) in
5050 let sh = unsigned const byte 2 in
5151 let ctr_ok = unsigned var bit in
5252 let cond_ok = unsigned var bit in
@@ -66,7 +66,7 @@ let bcla = update_link_register ^ bca
6666
6767(* * bdz target = bc 18,0, target *)
6868let bdz cpu ops =
69- let bd = unsigned imm ops.(0 ) in
69+ let bd = unsigned imm_32 ops.(0 ) in
7070 let sh = unsigned const byte 2 in
7171 let tm = signed var cpu.word_width in
7272 RTL.
@@ -79,7 +79,7 @@ let bdz cpu ops =
7979
8080(* * bdnz target = bc 16,0, target *)
8181let bdnz cpu ops =
82- let bd = unsigned imm ops.(0 ) in
82+ let bd = unsigned imm_32 ops.(0 ) in
8383 let sh = unsigned const byte 2 in
8484 let tm = signed var cpu.word_width in
8585 RTL.
@@ -94,7 +94,7 @@ let bdnz cpu ops =
9494 Power ISATM Version 3.0 B examples: 4e 9f 00 20 bclr 20, 31 4e 9f 00 21
9595 bclrl 20, 31 *)
9696let bclr cpu ops =
97- let bo = unsigned imm ops.(0 ) in
97+ let bo = unsigned imm_32 ops.(0 ) in
9898 let bi = unsigned cpu.reg ops.(1 ) in
9999 let sh = unsigned const byte 2 in
100100 let ctr_ok = unsigned var bit in
@@ -111,7 +111,7 @@ let bclr cpu ops =
111111 ]
112112
113113let bclrl cpu ops =
114- let bo = unsigned imm ops.(0 ) in
114+ let bo = unsigned imm_32 ops.(0 ) in
115115 let bi = unsigned cpu.reg ops.(1 ) in
116116 let sh = unsigned const byte 2 in
117117 let ctr_ok = unsigned var bit in
@@ -162,7 +162,7 @@ let bdnzlr cpu _ops =
162162 Power ISATM Version 3.0 B examples: 4d 5f 04 20 bcctr 10,31 4d 5f 04 21
163163 bcctrl 10,31 *)
164164let bcctr cpu ops =
165- let bo = unsigned imm ops.(0 ) in
165+ let bo = unsigned imm_32 ops.(0 ) in
166166 let bi = unsigned cpu.reg ops.(1 ) in
167167 let cond_ok = unsigned var bit in
168168 let x = unsigned var (bitwidth 5 ) in
@@ -189,7 +189,7 @@ let bctrl = update_link_register ^ bctr
189189 IBM Power ISATM Version 3.0 B examples: 4e 9f 04 60 bctar 4e 9f 04 61 bctarl
190190*)
191191let bctar cpu ops =
192- let bo = unsigned imm ops.(0 ) in
192+ let bo = unsigned imm_32 ops.(0 ) in
193193 let bi = unsigned cpu.reg ops.(1 ) in
194194 let sh = unsigned const byte 2 in
195195 let cond_ok = unsigned var bit in
0 commit comments