Simpletron machine and indirect addressing
I recently made the Simpletron assignment from the Deitel and Deitel textbook. The Simpletron machine language has only one addressing mode which is direct addressing. (That is, you have to specify the address you want to access in the operand part of the instruction.) So I think there is no way of computing an address at run time and access it. So doing something like this: [pseudo-c] int a[10]; ... int i = 0; while(a[i] > 100) { i++; } .. would require some self modifying code or expanding the loop, am I correct? So my question is: The textbook presents Simpletron as very similar to early