Skip to content

Instantly share code, notes, and snippets.

View Gummary's full-sized avatar
🎯
Focusing

Gummary Gummary

🎯
Focusing
View GitHub Profile
@krzysz00
krzysz00 / avg.s
Created January 4, 2013 19:28
A number averager written in ARM assembly. It reads integers from stdin and averages them.
.section .rodata
.align 2
scanner:
.string "%d"
.align 2
printer:
.string "The average of the numbers is: %d + %d/%d\n"
instructions:
.string "Type numbers to average, seperated by newlines.\n"