Re: Assignment #3

Ed Casas (edc@ece.ubc.ca) Fri, 25 Feb 2000 18:26:44 -0800


Date: Fri, 25 Feb 2000 18:26:44 -0800
From: Ed Casas <edc@ece.ubc.ca>
Subject: Re: Assignment #3

On Fri, Feb 25, 2000 at 03:32:35PM -0800, adam lazareck wrote: > I just had a quick question about the ROM section of the > assignment. How do we know what 'address' to assert when we > code the look up table for the assembler instructions? I'm not sure what you mean by "assert". The address is an input to the ROM. > Does it correspond to the line of the assembler code? The ROM stores the program. A computer program is a set of opcodes stored in memory. Each memory location has an address. These opcodes are the output of your ROM. For example, when the ROM address input is 0, the ROM output will be 1 since the opcode for address 0 is 1 (PUSH 1). Similarly, the opcode for address 1 is 131+n (OUTP), and so on. -- Ed Casas edc@ece.ubc.ca http://casas.ece.ubc.ca +1 604 822-2592