Sample code for Borland Turbo Assembler (TASM)
  • Assembly 62.2%
  • Pascal 21%
  • Makefile 16.8%
Find a file
2024-09-09 19:08:09 +02:00
.gitignore Initial commit 2024-09-07 21:16:07 +02:00
DISPLAY.ASM Demonstrate Turbo Pascal interoperability 2024-09-08 18:58:07 +02:00
HEX.ASM Add puthex, 80186-aware 2024-09-09 18:27:35 +02:00
HEX.PAS Write TP bindings for PUTHEX.ASM 2024-09-09 18:41:42 +02:00
Makefile Add debug flag 2024-09-09 19:08:09 +02:00
PINTEROP.PAS Demonstrate Turbo Pascal interoperability 2024-09-08 18:58:07 +02:00
PSTUB.ASM Only preserve DS 2024-09-09 13:37:17 +02:00
PUTHEX.ASM Add puthex, 80186-aware 2024-09-09 18:27:35 +02:00
PUTHEXS.ASM Write TP bindings for PUTHEX.ASM 2024-09-09 18:41:42 +02:00
README.md Add README 2024-09-08 19:56:56 +02:00
SUM.ASM Switch to the small memory model 2024-09-07 22:28:50 +02:00
SUMC.ASM Build using Borland make 2024-09-08 01:17:11 +02:00
SUME.ASM Build using Borland make 2024-09-08 01:17:11 +02:00
UINTEROP.PAS Demonstrate Turbo Pascal interoperability 2024-09-08 18:58:07 +02:00
USTUB.ASM Only preserve DS 2024-09-09 13:37:17 +02:00
USTUB.PAS Demonstrate Turbo Pascal interoperability 2024-09-08 18:58:07 +02:00

Assembly programming in DOSBox

Turbo Assembler 1 samples

  • SUM.ASM prints the sum of the first 200 natural numbers to screen memory.
  • DISPLAY.ASM provides a procedure that prints any number.
  • SUMC.ASM uses DISPLAY.ASM in a COM executable.
  • SUME.ASM uses DISPLAY.ASM in an EXE executable.

Turbo Pascal 4 samples

  • PINTEROP.PAS uses DISPLAY.ASM through PSTUB.ASM.
  • UINTEROP.PAS uses DISPLAY.ASM through USTUB.PAS and USTUB.ASM (wrapped in a unit).

SBOM

DOSBox version 0.74-3 Copyright 2002-2019 DOSBox Team, published under GNU GPL.
Turbo Assembler  Version 1.0  Copyright (c) 1988 by Borland International
Turbo Link  Version 2.0  Copyright (c) 1987, 1988 Borland International
MAKE  Version 2.0   Copyright (c) 1987, 1988 Borland International
Turbo Pascal  Version 4.0  Copyright (c) 1987 Borland International

See also

French tutorial