Skip to content

Commit 4dc47b6

Browse files
committed
2 parents 5769b88 + 644d35f commit 4dc47b6

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

src/eamodes_SaamAmiri.x68

+17-4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,23 @@ bin4 * 8 bit branch displacment
129129
JSR word_loop * write hex word from left->right
130130
RTS
131131
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+
133149
bin6 * SUBQ (special case)
134150
MOVE.W D3,D7 * save temp
135151
LEA STR_IMM,A6 * load #
@@ -211,8 +227,6 @@ write_slash
211227
JSR write_str * write /
212228
RTS
213229

214-
215-
216230
flip_op * Bit tested = 0 -> (<list>,EA)
217231
* Save copy of D3
218232
MOVE.W D3,D7 * save temp
@@ -222,7 +236,6 @@ flip_op * Bit tested = 0 -> (<list>,EA)
222236
JSR mode_test * print EA
223237
RTS
224238

225-
226239
bin8 * 9 bit Address
227240
JSR mode_test * test mode/reg
228241
JSR write_comma * write ,

0 commit comments

Comments
 (0)