mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
43a72dd638
<res ...> can get rather annoying when mixed in with data, as can happen with the MASM-like db syntax. List shorter blocks (8 bytes or less) as ?? instead; 8 bytes avoids line breaks for a single statement. This is probably more readable anyway... Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
37 lines
422 B
NASM
37 lines
422 B
NASM
bits 32
|
|
|
|
db 33
|
|
db (44)
|
|
; db (44,55) -- error
|
|
db %(44,55)
|
|
db %('XX','YY')
|
|
db ('AA')
|
|
db %('BB')
|
|
db ?
|
|
db 6 dup (33)
|
|
db 6 dup (33, 34)
|
|
db 6 dup (33, 34), 35
|
|
db 7 dup (99)
|
|
db 7 dup dword (?, word ?,?)
|
|
dw byte (?,44)
|
|
|
|
dw 3 dup (0xcc, 4 dup byte ('PQR'), ?), 0xabcd
|
|
|
|
dd 16 dup (0xaaaa, ?, 0xbbbbbb)
|
|
dd 64 dup (?)
|
|
|
|
resb 1
|
|
resb 2
|
|
resb 4
|
|
resb 8
|
|
|
|
resw 1
|
|
resw 2
|
|
resw 4
|
|
resw 8
|
|
|
|
resq 1
|
|
resq 2
|
|
resq 4
|
|
resq 8
|