fpc/tests/test/cg/obj/ttasm1.asm
nickysn a19c506b46 + added a very simple test for i8086-msdos for linking an external TASM
assembler .obj module. Note that TASM modules aren't fully supported yet,
  because our OMF internal linker doesn't support all features of the OMF object
  format. This test works, because it's really simple. As more OMF features are
  supported, this test will be extended.

git-svn-id: trunk@32353 -
2015-11-17 17:08:25 +00:00

17 lines
498 B
NASM

; test for linking a TASM external object module for the i8086-msdos platform
; assemble with TASM version 3.2 - it is the most commonly used version for
; linking with 16-bit pascal code, since it comes bundled with Borland Pascal 7
.MODEL large,PASCAL
.DATA
.CODE
IncDWord PROC FAR a: DWORD
PUBLIC IncDWord
mov ax, word ptr a
mov dx, word ptr [a+2]
add ax, 1
adc dx, 0
ret
IncDWord ENDP
END