Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : ADDSUB.ASM

 
Output of file : ADDSUB.ASM contained in archive : TASMSWAN.ZIP
%TITLE "ADD/SUB/INC/DEC instructions demo"

IDEAL
DOSSEG
MODEL small
STACK 256

DATASEG

exitCode DB 0 ;if you want comments
count DW 1 ; buy the book

CODESEG

Start:
mov ax,@data
mov ds,ax

mov ax,4
mov bx,2
add ax,bx

mov cx,8
mov cx,[count]

add [count],cx

inc [count]
dec [count]
inc ax
dec cx

Exit:
mov ah,04Ch
mov al,[exitCode]
int 21h

End Start


  3 Responses to “Category : Assembly Language Source Code
Archive   : TASMSWAN.ZIP
Filename : ADDSUB.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/