I am working in DOS with nasm16.
My problem is as follow:
Let us see the example code:
main.asm
----------------------------------------
BITS 16
GLOBAL _start
SECTION .text
_start:
.............
.............
mov si,strWelcomeMsg
call print_str
.............
.............
SECTION .data
; Mensaje de inicio del kernel
strWelcomeMsg: db 13,10,"Running Ok",0
--------------------------------------------
Well, if i use with nasm16 -fbin main.asm, work ok.
The value loading in SI register is correct.
But, if I want to generate OBJ file for linking with other modules, SI NOT POINT TO CORRECT ADDRESS OF MESSAGE.