44 lines
729 B
NASM
44 lines
729 B
NASM
section .rodata
|
|
; syscall
|
|
NR_read equ 0
|
|
NR_write equ 1
|
|
NR_exit equ 60
|
|
|
|
; file descriptors
|
|
FD_stdin equ 0
|
|
FD_stdout equ 1
|
|
FD_stderr equ 2
|
|
|
|
; ASCII
|
|
EOS equ 0
|
|
TAB equ 9
|
|
NL equ 10
|
|
DQUO equ 34
|
|
|
|
; Sizes
|
|
RBP_OFFSET_CALLER equ 16
|
|
SIZE_QWORD equ 8
|
|
SIZE_DWORD equ 4
|
|
SIZE_WORD equ 2
|
|
SIZE_BYTE equ 1
|
|
|
|
MIN_UINT64 equ 0
|
|
MIN_UINT32 equ 0
|
|
MIN_UINT16 equ 0
|
|
MIN_UINT8 equ 0
|
|
|
|
MAX_UINT64 equ 0xFFFFFFFFFFFFFFFF
|
|
MAX_UINT32 equ 0xFFFFFFFF
|
|
MAX_UINT16 equ 0xFFFF
|
|
MAX_UINT8 equ 0xFF
|
|
|
|
MIN_INT64 equ ~0x7FFFFFFFFFFFFFFF
|
|
MIN_INT32 equ ~0x7FFFFFFF
|
|
MIN_INT16 equ ~0x7FFF
|
|
MIN_INT8 equ ~0x7F
|
|
|
|
MAX_INT64 equ 0x7FFFFFFFFFFFFFFF
|
|
MAX_INT32 equ 0x7FFFFFFF
|
|
MAX_INT16 equ 0x7FFF
|
|
MAX_INT8 equ 0x7F
|