Click to See Complete Forum and Search --> : Fatal: 16 bit segments not supported in module TEST.ASM


CppMaster
October 21st, 2006, 04:17 PM
I'm currently learning ASM and trying one of the code examples. I have no problem assembling, but when I get to linking, using TLINK32 on a computer running Windows XP with an Intel Pentium 3 processor, I get the following output:
Turbo Link Version 1.6.65.0 Copyright (c) 1993,1996 Borland International
Beta version built at 13:11:48 on Jan 4 1996
Fatal: 16 bit segments not supported in module TEST.ASM

The code in test.asm is:

.MODEL small
.STACK 64
.DATA
DATA1 DB 52H
DATA2 DB 59H
SUM DB ?

.CODE
MAIN PROC FAR
MOV AX, @DATA
MOV DS, AX
MOV AL, DATA1
MOV BL, DATA2
ADD AL, BL
MOV SUM, AL
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN


What would be the problem and possible solution(s)? Thank you in advance for your help.

kumaresh_ana
October 25th, 2006, 02:25 AM
You are trying to make a 16 bit exe out of a 32 bit linker/assembler. Try using a differrent (16 bit version ) of the linker.