Ryan McNeeley
2005-11-08 19:43:39 UTC
A relatively simple question I think--
Why in the lab input example does the user specify M[0] = 0x9a? And
likewise for M[1] = 0x4f and so on...
I understand that M[0x1a] refers to M[26], and that the decimal value of 1
is stored there, likewise I understand for M[0x19] and that this refers to
M[25] and storing of 1 there as well.
I think my question is best stated--how is it possible to distinguish
between when the user is inputting values to be stored somewhere and when
they are inputting opcodes along with addresses? Basically, can it be
assumed that a user will input in a M[0],M[1],M[2],...etc. format always?
And that the 0-9 (or some arbitary decimal value) refer to the order that
the operations should be executed? Thanks in advance.
Why in the lab input example does the user specify M[0] = 0x9a? And
likewise for M[1] = 0x4f and so on...
I understand that M[0x1a] refers to M[26], and that the decimal value of 1
is stored there, likewise I understand for M[0x19] and that this refers to
M[25] and storing of 1 there as well.
I think my question is best stated--how is it possible to distinguish
between when the user is inputting values to be stored somewhere and when
they are inputting opcodes along with addresses? Basically, can it be
assumed that a user will input in a M[0],M[1],M[2],...etc. format always?
And that the 0-9 (or some arbitary decimal value) refer to the order that
the operations should be executed? Thanks in advance.
--
Ryan McNeeley
***@osu.edu
Ryan McNeeley
***@osu.edu