home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / slowdown / slow.asm < prev    next >
Assembly Source File  |  1989-04-15  |  998b  |  33 lines

  1.         name     slow
  2.         title    'Slow.Com -- puts board into deburbo mode (simulated 8 Mhz)'
  3.  
  4. cr      equ      0dh            ; ASCII carriage return
  5. lf      equ      0ah            ; ASCII line feed
  6. cmnd    equ      64h            ; command register
  7.  
  8. code    segment public
  9.  
  10.         org      100h           ; COM file
  11.  
  12.                  assume  cs:code,ds:code
  13.  
  14. start:
  15.         mov     ax, cs          ; set ds equal to cs
  16.         mov     ds, ax
  17.  
  18.         mov     al, 0eah        ; value for deturbo mode
  19.         out     cmnd, al        ; write to command port
  20.  
  21.         mov     dx, offset deturbo      ; tell user that switch happened
  22.  
  23.         mov     ah, 9           ; use DOS func 9 to
  24.         int     21h             ;   print the string
  25.  
  26.         mov     ax, 4c00h       ; exit back to DOS with
  27.         int     21h             ;   a return code of zero
  28.  
  29. deturbo db      cr,lf,'Slow.Com -- now running in deturbo mode.',cr,lf,'$'
  30.  
  31. code    ends
  32. end     start
  33.