< Previous
Next >

: All the arithmetic operations work now. String multiplication (as per Perl (M-M-Ma-M-Max Headroom)) and modulus were the toughest since I had to implement them in Java assembler (there's no operation or provided function for either), and I suck at writing assembler. String multiplication takes 19 instructions and modulus takes 12. They could be done in fewer... this assembler syntax must have an unconditional jump! Unconditional jumps? I must have this assembler syntax!

So this works now:

Modulus program: calculates a%b
Enter a:
Enter b:
1049 % 203 = 34

[Main] [Edit]

Unless otherwise noted, all content licensed by Leonard Richardson
under a Creative Commons License.