User Tools

Site Tools


base:8bit_multiplication_8bit_product

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

base:8bit_multiplication_8bit_product [2015-04-17 04:30]
127.0.0.1 external edit
base:8bit_multiplication_8bit_product [2017-10-26 06:59] (current)
white_flame
Line 2: Line 2:
 <​code>​ <​code>​
 ; General 8bit * 8bit = 8bit multiply ; General 8bit * 8bit = 8bit multiply
 +; by White Flame 20030207
 +
 ; Multiplies "​num1"​ by "​num2"​ and returns result in .A ; Multiplies "​num1"​ by "​num2"​ and returns result in .A
 +; 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