COMP 228 Chapter Notes - Chapter Section 4: Mips Instruction Set, Instruction Register, Datapath

220 views5 pages

Document Summary

Add the contents of address x to ac. Subtract the contents of address x from the ac. Add indirect: use the value at x as the actual address of the data operand to add to ac. Load the contents of address x into ac. Store the contents of ac at address x. Input a value from the keyboard into ac. Output the value in ac to the display. Unconditional branch to x by loading the value of x into pc. Skip the next instruction based on the condition, c: C = 00016: skip if ac is negative (b11b10 = 002) C = 40016: skip if the ac = 0 (b11b10 = 012) C = 80016: skip if the ac is positive (b11b10 = 102) Jump-and-store: store the pc at address x and jump to x+1. Use the value at x as the address to jump to. A simple marie program can be written to perform the high-level language statements:

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
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents