# # Example HW3 Program # The program is represented simply as a sequence of words in memory. # # You should feel free to use this file as a template for creating # your own test programs. # .data .globl code # the symbol code must be global code: .word 0x20000000 # clear .word 0x70000008 # push 8 .word 0x70000009 # push 9 .word 0x50000000 # add .word 0x50000000 # add .word 0x10000000 # show .word 0x70000003 # push 3 .word 0x70000004 # push 4 .word 0x30000000 # mult .word 0x10000000 # show .word 0x60000000 # sub .word 0x10000000 # show .word 0x7ffffffe # push -2 .word 0x40000000 # div .word 0x10000000 # show .word 0x00000000 # stop