I get this error output when I try to assemble a BIN file. What is the problem?
boot.s:18: error: invalid effective address
boot.s:19: error: invalid effective address
Here's the command to compile the file.
nasm -f bin -o boot.bin boot.s
Here's the file, "boot.s".
BITS 16
section .text
org 0x7c00
jmp 0:start
start:
mov ax, 0
mov ss, ax
mov ax, 0x4000
mov sp, ax
sub sp, 32
mov ax, 1
mov [sp], ax ;ERROR HERE
mov [sp+2], ax ;ERROR HERE