D
D
Dartess2014-05-17 11:38:42
assembler
Dartess, 2014-05-17 11:38:42

Assembler, translation fasm -> tasm

Wrote such a voluminous program on fasm. Wrote. Compiled to COM under DOS, fine. I transfer to tasm (initially it was necessary to write under it), I adapt the syntax (macros, com structure, ptr). But here's the problem. When P286 is specified, I get Relative jump out of range by XXXXh bytes (I remind you that I compiled fasm in com, it works fine) and Illegal instruction for currently selected processor (swears at bt, as it turned out, it was entered only 386m). I change it to P386, it is broadcast without problems, but the linker swears: Fatal: 32-bit record encountered in module xxx.asm. Chiadnt? The code is working, fasm copes with it. And this one is trying to get a 32-bit application, judging by the listing:
Groups & Segments Bit Size Align Combine Class
CODE 32 8FCB Para none CODE
Just in case, the batch file for compilation is as follows:
BIN\tasm.exe DISASM.ASM /l
BIN\tlink.exe DISASM.OBJ /t

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
x128, 2014-05-17
@x128

key /3 for tlink

J
jcmvbkbc, 2014-05-17
@jcmvbkbc

this one is trying to get a 32-bit application, judging by the listing

Put .386 after .text
But to be sure - the source code to the studio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question