Commit 1912905a authored by Jayke Meijer's avatar Jayke Meijer

Added new version of hello.s and hello.c

parent 31df0392
...@@ -44,6 +44,9 @@ main: ...@@ -44,6 +44,9 @@ main:
lw $3,20($fp) lw $3,20($fp)
addu $2,$2,$3 addu $2,$2,$3
sw $2,24($fp) sw $2,24($fp)
lw $2,16($fp)
addu $3,$2,10
sw $3,28($fp)
l.d $f0,$LC0 l.d $f0,$LC0
s.d $f0,32($fp) s.d $f0,32($fp)
l.d $f0,$LC1 l.d $f0,$LC1
......
int main(void) int main(void)
{ {
int x = 1, b = 5, d = x + b; int x = 1, b = 5, d = x + b, e = x + 10;
double y = 2., z = 3.5; double y = 2., z = 3.5;
char c = 'a'; char c = 'a';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment