Closer.

   29 March 2004, the wee hours


        .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.

|  

Comments

  1. What does it do? Save space on the stack for a variable, x. Assign x the value 10. Assign x the value 20. Quit.

  2. you're a geek! :P

Don't be shy, you can comment too!

 
Some things to keep in mind: You can style comments using Textile. In particular, *text* will get turned into text and _text_ will get turned into text. You can post a link using the command "linktext":link, so something like "google":http://www.google.com will get turned in to google. I may erase off-topic comments, or edit poorly formatted comments; I do this very rarely.