|
Mult.asm implements multiplication in software (Hack Assembly language). Given a number in one register, and another number in a second register, place their product in a third register.
Review the book chapter for how to read the keyboard - it's one register in Memory. Which register?
If you know how to change one pixel, do you know how to change, say, 16 pixels?
#3) That's part of the challenge you'll have to think about some more. Write it in pseudocode first. Solve the problem, then write the solution as asm.
An infinite loop is not a compilation error - sometimes we want an infinite loop in our program. When we don't want an infinite loop, but we end up with one in a program, it is, at most, a logic error.
|