Section 9.3: An Example of a CSC-1 Assembler Program (Frame 6)                     [prev][home][next]

You can inspect memory's contents by using the m command. For example, once this program finishes, variable C, or location 6, should have the number 12 in it, since this program adds 5+7 and stores the answer in C:

>> m6
memory[   6]=    12      (     12)    0000000000001100

Whenever memory or the registers are printed out, the value is shown in 3 forms: signed decimal, unsigned decimal and binary. The unsigned decimal is shown in parentheses and binary at the end.