f4979873e75d — Laurens Holst 3 years ago
Math: Small shift loop improvement.

Does not actually improve execution time on R800, but a bit easier to read.
1 files changed, 2 insertions(+), 3 deletions(-)

M src/Math.asm
M src/Math.asm +2 -3
@@ 26,9 26,8 @@ PositiveExponent:
 	ret z
 PositiveShiftLoop:
 	add hl,hl
-	ex de,hl
-	adc hl,hl
-	ex de,hl
+	rl e
+	rl d
 	djnz PositiveShiftLoop
 	ret
 NegativeExponent: