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

 
Output of file : DOTOTAL.ASM contained in archive : TASMSWAN.ZIP
;
; dototal.asm
; Use with showtot.c to demo linking ASM with C
;
DOSSEG
.MODEL SMALL
.DATA
EXTRN _Repetitions:WORD
PUBLIC _StartingValue
_StartingValue DW 0
.DATA?
RunningTotal DW ?
.CODE
PUBLIC _DoTotal
_DoTotal PROC
mov cx,[_Repetitions]
mov ax,[_StartingValue]
mov [RunningTotal],ax
TotalLoop:
inc [RunningTotal]
loop TotalLoop
mov ax,[RunningTotal]
ret
_DoTotal ENDP
END


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