Thank you. I had a feeling I was overthinking it. Can't wait to see the later chapters
danjia
2
Posts
1
Following
A member registered Oct 04, 2019
Recent community posts
On the 25th level and it has been amazing so far! Wanted to ask how the 24th and 25th should be done (3-3: Multiplication, 3-4: Division). I solved mult by just adding 1 a lot to 1 of the registers, this likely very incorrect approach doesn't work for division
My only thought is that I decrement reg 1, branching whenever it becomes 0 to do a separate counting up loop for a couple dividends, but this would be a lot of code, and calculating offsets will be a mess.
I also thought about self-modifying code, but it doesn't seem possible.
Is there maybe a separate mem region I can write to that will help?