User Tools

Site Tools


base:8bit_multiplication_16bit_product_fast_no_tables

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
base:8bit_multiplication_16bit_product_fast_no_tables [2020-02-02 21:59] – created djmipsbase:8bit_multiplication_16bit_product_fast_no_tables [2020-02-02 22:09] djmips
Line 1: Line 1:
 +<code>
 ; mul 8x8 16 bit result for when you can't afford big tables ; mul 8x8 16 bit result for when you can't afford big tables
 ; by djmips  ; by djmips 
 ; ;
-; inputs are mul1 and mul2 and should be zero +; inputs are mul1 and mul2 and should be zero page.  
-output is 16 bit in A : mul1+A should be zero entering but if you want it will factor in as 1/2 added to the result.
 ; ;
 +; output is 16 bit in A : mul1   (A is high byte)
 +;
 +; length = 65 bytes 
 ; total cycles worst case = 113 ; total cycles worst case = 113
 ; total cycles best case = 97 ; total cycles best case = 97
Line 47: Line 51:
      inc mul2  ; 5      inc mul2  ; 5
      rts      rts
 +</code>
  
  
base/8bit_multiplication_16bit_product_fast_no_tables.txt · Last modified: 2023-03-15 03:25 by djmips