home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 123.img / TASM.ZIP / MYASM.ASM < prev    next >
Assembly Source File  |  1988-10-31  |  639b  |  22 lines

  1. ;
  2. ; MYASM.ASM
  3. ;
  4. A_PROG     SEGMENT BYTE
  5.            ASSUME CS:A_PROG
  6.            PUBLIC double_0
  7. double_0   PROC   FAR
  8.            push   bp
  9.            mov    bp,sp
  10.  
  11.            mov    ax, [bp]+10          ; get the value which MyInVar is bound
  12.            add    ax,ax                ; double that value
  13.            lds    si,DWORD PTR [bp]+6
  14.            mov    [si],ax              ; store the value of MyOutVar 
  15.                                        ; in the appropriate address
  16.        mov    sp,bp                                       
  17.            pop    bp
  18.            ret    6
  19. double_0  ENDP
  20. A_PROG    ENDS
  21.           END
  22.