Closer.
29 March 2004, terribly early in the morning
.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.
by ramanan on March 29 2004, 4:53 am #
you're a geek! :P
by sh!ma on March 29 2004, 3:19 pm #