The following two macroinstructions are to be added to the Mac-1 language
of Figure 4-14:
-
ANDD
-
AND direct, ac := ac AND m[x]
-
ANDL
-
AND local, ac := ac AND m[sp + y]
You are to modify the machine instructions to include these new instructions.
You decide what the operation code for each should be. You will change (and
move one of???) the local instructions (LODL, ADDL, STOL, SUBL) to accommodate
these new instructions, but you must follow these rules:
-
x will be 12 bits from the machine instruction.
-
y will be 8 bits from the machine instruction.
-
All machine instructions will be 16 bits long.
-
All local instructions (LODL, STOL, ADDL, SUBL, ANDL) will be limited
to adding an 8 bit number to the stack pointer, instead of 12 as it is designed
in the book. Only move the ones that must be moved.
Give me the following for this new architecture
-
(2 points) Give me a list of all new and modified conventional
machine code instructions. Give me a description of each of these.
-
(3 points) Show me the new and modified microcode for these
instructions. Include the line number for modified instructions, add new
instructions after line 78 in Figure 4-16. If you need to add instructions
between two old instructions, for example between 17 and 18, then label them
17a, 17b, 17c, etc. Do not rewrite the entire microprogram. Just give me
the changes and how they would fit into the microprogam. Be sure to add
any new decoding instructions, too.