Skip to content

Instantly share code, notes, and snippets.

@jenrzzz
Last active December 17, 2015 18:18
Show Gist options
  • Select an option

  • Save jenrzzz/5651745 to your computer and use it in GitHub Desktop.

Select an option

Save jenrzzz/5651745 to your computer and use it in GitHub Desktop.
.section ".data"
.global fmt
fmt:
.asciz "uninit value: %d\n"
.section ".bss"
.global a
a: .skip 4
.section ".text"
.global main
main:
save %sp, -96, %sp
set fmt, %o0
set a, %l0
ld [%l0], %o1
call printf
nop
ret
restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment