CS241 Study Guide - Standard Streams, Operand, Symbol Table

38 views6 pages
8 Oct 2014
Course
Professor

Document Summary

. word -1 sw , -4() sub , , add , sh, sh lis . word getlastelement jalr add , , lw , -4() jr getlastelement: sw , -4() sw , -8() sw , -12() sw , -16() lis . word 16 sub , , mult , mflo add , , add , , lw , 0() bne , , notnull lw , 0() beq sh, sh, restoreandreturn notnull: lis . word 16 add , , lw , -4() lw , -8() lw , -12() lw , -16() jr https://www. student. cs. uwaterloo. ca/~cs241/tutorial_w14/linked-list-noc. asm. The value of a label is defined to be the number of non-null lines (lines containing an instruction) that precede the label multiplied by 4. To begin, we mark all the non-null lines in the program. begin: Now we make a list of labels in the program. begin label after abc0 abc1 loadstore end.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions