Assignment 2 questions.


R. Clayton (rclayton@monmouth.edu)
(no date)


Two blocks are identical if only value of memory address identifier are same.

  Two blocks perform identical computations if and only if they both leave
  memory in the same state after they've both started from the same state.

We should use "add" for addition; what are the names of the other operators we
should use?

  Oops, my mistake. Your program should look for the C++ binary operators
  given (see Deitel and Deitel Appendix A for the operators). My example is
  wrong, and should be

    move r0 a move r0 a
    move r1 a + r0 r0
    + r0 r1 move a r0
    move a r0

  The assignment page has been fixed. Thanks for pointing this out.

What types of constants can there be?

  Only integer literals can be constants. The assignment's been fixed to make
  that clear. Thanks for pointing it out.

Is memory address is any char or char string?

  Memory address are valid C++ identifiers. See the second sentence in the
  first paragraph of the Problem section, the sentence that contains "...memory
  is addressed by identifiers in C++ syntax...", for more details.

Input will be only one pair of instruction blocks, or can it be more than one
pair?

  One pair. See the first sentence of the first paragraph of the Input
  section, the sentence that starts "The input will be a pair..." for full
  details.



This archive was generated by hypermail 2.0b3 on Fri May 09 2003 - 15:30:05 EDT