Re: The ROM

Ed Casas (edc@ece.ubc.ca) Sun, 27 Feb 2000 17:29:53 -0800


Date: Sun, 27 Feb 2000 17:29:53 -0800
From: Ed Casas <edc@ece.ubc.ca>
Subject: Re: The ROM

> From what I've read from the previous posts and the > documentation, am I correct to say that the ROM is basically > the program on page 3 of the assignment encoded into hardware? Yes. > If I look up address 0, I'll get the opcode for PUSH, address 1 > will give OUTP, address 2 will give INP, etc. Is this correct? Yes. > And a final question: is the opcode for PUSH up for us to > decide as long as it is between the values 0-127 inclusively? No. It has to correspond to the value of the operand of the PUSH. In assembly language the value of a constant operand is the value of constant and the value of a label operand is the address of the label. -- Ed Casas edc@ece.ubc.ca http://casas.ece.ubc.ca +1 604 822-2592