diff --git a/wip-hugo/macros/16aritmatic.s b/wip-hugo/macros/16aritmatic.s index 429cd13..2756c9d 100755 --- a/wip-hugo/macros/16aritmatic.s +++ b/wip-hugo/macros/16aritmatic.s @@ -69,13 +69,17 @@ ;; Multiplication of 2 ;; a = a*2 -.macro mult_16 low_, hi_, fast_unsafe -;; IF to run it fast +.macro mult_16 low_, hi_, NOT_ROL +;; IF NOT_ROL .ifblank fast_unsafe - CLC -.endif - ROL low_ + ASL low_ + ROL hi_ +.else + ROL low_ ROL hi_ +.endif + + .endmacro ;;Larger then operation, uses the A register diff --git a/wip-hugo/routines/memory/pixel_draw.s b/wip-hugo/routines/memory/pixel_draw.s index 10f7663..1108e05 100755 --- a/wip-hugo/routines/memory/pixel_draw.s +++ b/wip-hugo/routines/memory/pixel_draw.s @@ -62,16 +62,16 @@ end__: ;;We need to calculate C*40. 40 = 2*2*2*(2^2 +1) ;; _*2^2 - mult_16 >C, C, C, C, C, B, C, C, C, C, C, C, btp_mem_pos, C,