Assemble the following program using a two-pass assembler. Make sure to show the symbol table and then the final assembled pr

Assemble the following program using a two-pass assembler. Make sure to show the symbol table and then the final assembled program in binary: .globl main .text 1000 main: la $t1, label addi $t2, $zero, O jr $ra data label: word 0,1,0,2,0,3 How it will be graded: 5 points – Pass 1 (Symbol table) 5 points – Pass 2 (Final code) The student must provide ONLY two tables. See the lecture slides for example tables. In class we built a symbol table and then we generated code using an offset table. They need to do that to get full points.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *