Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : SAMPLE.ASM

 
Output of file : SAMPLE.ASM contained in archive : MTD.ZIP
TITLE Test Assembly Language Program (MASM syntax)

DOSSEG
.MODEL SMALL
.STACK 100h

.DATA

string db "Test Program",13,10
len equ $ - string

PUBLIC string

.CODE

start: mov ax, @DATA ; Assign address of data
mov ds, ax ; segment to ds
mov bx, 1 ; Select standard out
mov cx, len ; Set cx = string length
mov dx, OFFSET string ; Address string with dx
mov ah, 40h ; Select DOS write function
int 21h ; Display string
mov ax, 4C00h ; Select DOS exit function
int 21h ; Exit program

END start


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : SAMPLE.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/