base:8bit_multiplication_8bit_product
Differences
This shows you the differences between two versions of the page.
base:8bit_multiplication_8bit_product [2015-04-17 04:30] – external edit 127.0.0.1 | base:8bit_multiplication_8bit_product [2017-10-26 06:59] (current) – white_flame | ||
---|---|---|---|
Line 2: | Line 2: | ||
< | < | ||
; General 8bit * 8bit = 8bit multiply | ; General 8bit * 8bit = 8bit multiply | ||
+ | ; by White Flame 20030207 | ||
+ | |||
; Multiplies " | ; Multiplies " | ||
+ | ; Instead of using a bit counter, this routine early-exits when num2 reaches zero, thus saving iterations. | ||
- | ; by White Flame (aka David Holz) 20030207 | ||
; Input variables: | ; Input variables: | ||
Line 13: | Line 15: | ||
; .X and .Y are preserved | ; .X and .Y are preserved | ||
; num1 and num2 get clobbered | ; num1 and num2 get clobbered | ||
- | |||
- | ; Instead of using a bit counter, this routine ends when num2 reaches zero, thus saving iterations. | ||
lda #$00 | lda #$00 |
base/8bit_multiplication_8bit_product.txt · Last modified: 2017-10-26 06:59 by white_flame