What would be the equivalent in att syntax for defining some easier-to-read constants at the top of a file?
SYS_READ equ 0 ; read text from stdin
SYS_WRITE equ 1 ; write text to stdout
SYS_EXIT equ 60 ; terminate the program
STDIN equ 0 ; standard input
STDOUT equ 1 ; standard output
My thought would be something like:
.section .rodata
SYS_READ: .byte 0
SYS_WRITE: .byte 1
# ...
Is this correct or close? If not, what would be the suggested way to define a bunch of constants at the top of an assembly program?