Code: Select all
22: mov test,0xDE
23: section .bss
24: test: resb 1
Code: Select all
nasm -f elf -o load.o load.s
Code: Select all
src/load.s:22: error: invalid combination of opcode and operands
Code: Select all
22: mov test,0xDE
23: section .bss
24: test: resb 1
Code: Select all
nasm -f elf -o load.o load.s
Code: Select all
src/load.s:22: error: invalid combination of opcode and operands
I add square brackets and nasm tell exactly the issue:jfl wrote:I've tried adding square brackets but it doesn't work.
Code: Select all
error: operation size not specified
Code: Select all
mov byte [test], 0xDE
...because "test" is an x86 instruction.bluemoon wrote:ps: test is not a good name for variable label.