mirror of
https://github.com/RustyRaptor/compilers.git
synced 2026-12-03 23:25:17 -07:00
19 lines
285 B
NASM
19 lines
285 B
NASM
# PACKAGE foo
|
|
|
|
.data # Data section starts here, strings first
|
|
|
|
_NL: .asciiz "\n" # NEWLINE STRING
|
|
|
|
.align 2 # start all global variable aligned
|
|
|
|
|
|
|
|
.text # start of text segment (code)
|
|
|
|
.globl main # Force MIPS to start at main label
|
|
|
|
|
|
|
|
main: # MAIN METHOD LABEL
|
|
|