I have a question while I was doing project 7 SimpleAdd just got very confused. Hope that someone can give me some hints. Thank you very much.
I come across some project7-related posts, some of them mentioned AM=M-1. I tried to search in the book but in vain. I found a post by 'cadet1620' which include some examples. Do the same logic apply to AM=M-1?
eg. AD=A+1 Increment A register and set D register to incremented value.
//AM=M-1 Decrement M register and set M register to decremented. Nothing to do with the A register
Re: Confused about SimpleAdd implementation concept
It has nothing to do with the speed of the CPU. However slow the clock is, the next line of code does not get executed until all of the effects of the prior line of code have been applied.
Having said that, this does take some time to happen, and that is what puts an upper limit on how fast our clock can be -- it has to be slow enough that all of the effects of the prior line have time to settle before we start executing the next line.