but when using nasm -felf (needed for smalrl) that code doesn't compile.
The error code is: `error: symbol 'data' undefinied'
My question is, how can I access the .data segment in when using -felf.
I know this is not strictly a smlrl issue, but smlrl is forcing me to using -felf.
Thanks!
In the small memory model it is expected that ds=ss. ss is set up before your program starts. Just copy it to ds. See srclib/c0ds.asm, srclib/dpstub.asm.
context: developing a DOS 16-bit program. Using
nasm
+smlrl
.when using
nasm -fobj
I can do this:but when using
nasm -felf
(needed forsmalrl
) that code doesn't compile. The error code is: `error: symbol 'data' undefinied'My question is, how can I access the
.data
segment in when using-felf
. I know this is not strictly asmlrl
issue, butsmlrl
is forcing me to using-felf
. Thanks!