File tree 1 file changed +17
-4
lines changed
1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,23 @@ bin4 * 8 bit branch displacment
129
129
JSR word_loop * write hex word from left->right
130
130
RTS
131
131
bin5 * Special rotation (12 bit)
132
-
132
+ MOVE.W D3 ,D7 * save temp
133
+ LSR.W #$8 ,D3 * shift dest reg to source reg index
134
+ LSR.W #$1 ,D3 * max of 8 bit shifts per OP
135
+ BTST #5 ,D7 * check direction bit
136
+ BEQ imm_rot * immediate used
137
+ BNE reg_rot * data reg used
138
+ imm_rot
139
+ JSR reg_sum * sum reg bits
140
+ BRA skip_rot * skip to end
141
+ reg_rot
142
+ JSR mode000 * sum reg bits
143
+
144
+ skip_rot
145
+ JSR write_comma * write comma
146
+ MOVE.W D7 ,D3 * restore
147
+ JSR mode000 * data reg write
148
+
133
149
bin6 * SUBQ (special case)
134
150
MOVE.W D3 ,D7 * save temp
135
151
LEA STR_IMM,A6 * load #
@@ -211,8 +227,6 @@ write_slash
211
227
JSR write_str * write /
212
228
RTS
213
229
214
-
215
-
216
230
flip_op * Bit tested = 0 -> (<list>,EA)
217
231
* Save copy of D3
218
232
MOVE.W D3 ,D7 * save temp
@@ -222,7 +236,6 @@ flip_op * Bit tested = 0 -> (<list>,EA)
222
236
JSR mode_test * print EA
223
237
RTS
224
238
225
-
226
239
bin8 * 9 bit Address
227
240
JSR mode_test * test mode/reg
228
241
JSR write_comma * write ,
You can’t perform that action at this time.
0 commit comments