home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / caway349.zip / BIN / DOSSHELL.ASM < prev    next >
Assembly Source File  |  1996-06-17  |  596b  |  46 lines

  1. ;
  2. ;Example of shell to DOS.
  3. ;
  4.     .model small
  5.     .386
  6.  
  7. STACK    Segment para stack use16 'STACK'
  8.      DB    400h DUP (?)
  9. ENDS
  10.  
  11.     include cw.inc
  12. b    equ    byte ptr
  13. w    equ    word ptr
  14.  
  15.     .data
  16. aname    db 'c:\command.com',0    ; change 'c' to drive containing COMMAND.COM
  17. ptab    dw 0
  18.     dw ctab
  19.     dw dgroup
  20.     dw 0
  21.     dw dgroup
  22.     dw 0
  23.     dw dgroup
  24. ctab    db 0,13
  25.  
  26. sometext    db 'hello world',13,10,'$'
  27.  
  28.     .code
  29. start:    mov    ax,DGROUP
  30.     mov    ds,ax
  31.     mov    es,ax
  32.  
  33.     mov    dx,offset sometext
  34.     mov    ah,9
  35.     int    21h
  36.  
  37.     mov    dx,offset aname
  38.     mov    bx,offset ptab
  39.     mov    ax,4b00h
  40.     int    21h
  41.  
  42.     mov    ax,4c00h
  43.     int    21h
  44.  
  45.     end    start
  46.