We've been asked to write 16-bit assembly code and assemble it to run in DOSBox.
I know that 16-bit assembly code just differs from normal x86 assembly code in that it uses bits 16
and also 16-bit registers (ax
, bx
,cx
, ...).
I tried searching on how to use NASM for 16-bit code and unfortunately didn't understand what it's saying.
What I just want to know is what parameters to use in NASM to assemble 16-bit assembly code? (-bin
or -obj
?), and then if possible, how to debug it in Linux. If not possible, how to debug in DOSBox?
Would really like some help here cause we've been given very minimal resources to understand this so I'm really confused.