Asm uninitialized data
Posted: Sun Jul 03, 2011 2:44 pm
I am trying to use uninitialized variables in my os but can't figure out how. A sample of the code I have so far is:
When I build it using , it outputs:
I've tried adding square brackets but it doesn't work.
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