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

 
Output of file : MULDIV.ASM contained in archive : TASMSWAN.ZIP
%TITLE "MUL/DIV/IMUL/IDIV instructions demo"

IDEAL
DOSSEG
MODEL small
STACK 256

DATASEG

exitCode DB 0 ;if you want comments
opByte DB 8 ; buy the book
opWord DW 100
sourceByte DB 64
sourceWord DW 4000

CODESEG

Start:
mov ax,@data
mov ds,ax

mov al,[opByte]
mul [sourceByte]

mov ax,[opWord]
mul [sourceWord]

mov ax,[opWord]
mul ax

mov ax,[opWord]
div [sourceByte]

mov ax,[opWord]
mov dx,0
div [sourceWord]

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

End Start


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