GAS LISTING hello.s page 1 1 .option pic0 2 .set noreorder # note addition 3 4 .rdata 5 helloMessage: 6 0000 48656C6C .ascii "Hello, World!\000" 6 6F2C2057 6 6F726C64 6 2100 7 8 000e 0000 .text 9 .globl main 10 .ent main 11 12 main: 13 # call puts() 14 0000 3C040000 la $a0,helloMessage # first (and only) argument to puts() 14 24840000 15 0008 0C000000 jal puts 16 000c 00000000 nop # note addition 17 18 # call exit() 19 0010 24040000 li $a0,0 # error status 20 0014 0C000000 jal exit 21 0018 00000000 nop # note addition 22 23 001c 00000000 .end main GAS LISTING hello.s page 2 DEFINED SYMBOLS hello.s:5 .rodata:0000000000000000 helloMessage hello.s:12 .text:0000000000000000 main UNDEFINED SYMBOLS puts exit