Anonymous user
Ethiopian multiplication: Difference between revisions
→Smaller version
(→{{header|AutoIt}}: support for negative parameters) |
|||
Line 2,275:
1BDC:010E 90 NOP
1BDC:010F 90 NOP
;mulitplication routine starts here
1BDC:0110 89E5 MOV BP,SP ; prepare to get operands off stack
1BDC:0112 8B4E02 MOV CX,[BP+02] ; Get the first operand
Line 2,283:
1BDC:011E 7402 JZ 0122 ; no skip the next instruction
1BDC:0120 01D8 ADD AX,BX ; we are odd so add to the result
1BDC:0122
1BDC:0124
1BDC:0126
1BDC:
;pretty small, just 24 bytes </lang>
|