.file "test/code/simple_assignment.ada"
.global main
main:
save %sp, -96, %sp
sub %sp, 4, %sp
mov 10, %r16
sub %fp, 0, %r17
st %r16, [%r17]
mov 20, %r16
sub %fp, 0, %r17
st %r16, [%r17]
nop
ret
restore
Assembly has never looked so good.
What does it do? Save space on the stack for a variable, x. Assign x the value 10. Assign x the value 20. Quit.
[Posted by ramanan on March 29, 2004 01:53 AM]you're a geek! :P
[Posted by sh!ma on March 29, 2004 12:19 PM]This site is dead. Check out my new web site A Funkaoshi Production.
A simple blog of sorts. Updated sporadically at best. Here you will find my opinions on various topics of interest to me, or the goings on of my day. Yes, it's quite exciting I know.
Next: A3.