13

Just finished an assignment yesterday where we had to code a math problem in assembler in under 20 lines

looking at the task: Hey, we already did this in Python

*building own modulo Operation for that cause we cant use it*

*freaking out when realizing it's just not posibble in 20 lines*

Then scrolling up the wikipedia page to see you've spend hours trying to implement the wrong thing

Comments
  • 0
    If you want the modulo to see if a number is even you can just use marks and bit wise operations
  • 1
    @milkbytes it's a custom instruction set of a hypothetical 32 bit computer. It's not capable of doing multiplication, division, bit operations and much more. But thanks for the recommendation :)
  • 1
    @nilmonster That sucks then. What I did in most my IA32 assignments was check if the bit 0 was toggled or not, since it equals to 1 (in decimal).
Add Comment