A1_2 - # $8 = 5x # ori $9, $0, 4 # put y into $9 sll $10,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
## A1_2.asm ## Written by: Colin Swelin 0308676 ## Program to calculate z = 5x - 7y ## .text .globl main . main: m ori $8, $0, 3 # put x into $8 sll $9, $8, 2 # $9 <-- 4x addu $8, $9, $8
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: # $8 = 5x # ori $9, $0, 4 # put y into $9 sll $10, $9, 3 # $10 <-- 8x subu $9, $10, $9 # $9 = 7x # subu $10, $8, $9 # $10 = 5x - 7y # ## end of file...
View Full Document

This note was uploaded on 02/14/2010 for the course COMPUTER S COIS-3030 taught by Professor Hircock during the Spring '10 term at Trent University.

Ask a homework question - tutors are online