home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TASMSWAN.ZIP / MOV.ASM < prev    next >
Assembly Source File  |  1989-07-10  |  370b  |  33 lines

  1. %TITLE "MOV instruction demo"
  2.  
  3.     IDEAL
  4.     DOSSEG
  5.     MODEL    small
  6.     STACK    256
  7.  
  8.     DATASEG
  9.  
  10. exitCode    DB    0    ;if you want comments
  11. speed        DB    99      ; BUY the book
  12.  
  13.     CODESEG
  14.  
  15. Start:
  16.     mov    ax,@data
  17.     mov    ds,ax
  18.  
  19.     mov     ax,1
  20.     mov    bx,2
  21.     mov    cx,3
  22.     mov     dx,4
  23.  
  24.     mov    ah,[speed]
  25.     mov    si, offset speed
  26.  
  27. Exit:
  28.     mov    ax,04Ch
  29.     mov    al,[exitCode]
  30.     int     21h
  31.  
  32.     End     Start
  33.