home *** CD-ROM | disk | FTP | other *** search
- ; Static Name Aliases
-
- ;
-
- ; $S17_I EQU I
-
- TITLE ft_strin.for
-
- NAME ft_strin
-
-
-
- .8087
-
- FT_STRIN_TEXT SEGMENT BYTE PUBLIC 'CODE'
-
- FT_STRIN_TEXT ENDS
-
- _DATA SEGMENT WORD PUBLIC 'DATA'
-
- _DATA ENDS
-
- CONST SEGMENT WORD PUBLIC 'CONST'
-
- CONST ENDS
-
- _BSS SEGMENT WORD PUBLIC 'BSS'
-
- _BSS ENDS
-
- DGROUP GROUP CONST, _BSS, _DATA
-
- ASSUME CS: FT_STRIN_TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
-
- EXTRN __acrtused:ABS
-
- EXTRN __FClccop:FAR
-
- EXTRN __FClccmp:FAR
-
- EXTRN __FCclenv:DWORD
-
- _DATA SEGMENT
-
- ORG $+2
-
- $SG23 DB ' '
-
- ORG $+-2
-
- $SG25 DB 00H
-
- ORG $+-2
-
- $SG27 DB 00H
-
- _DATA ENDS
-
- _BSS SEGMENT
-
- $S17_I DW 02H DUP (?)
-
- _BSS ENDS
-
- FT_STRIN_TEXT SEGMENT
-
- ; Line 6
-
- PUBLIC T_STRING
-
- T_STRING PROC FAR
-
- push bp
-
- mov bp,sp
-
- sub sp,4
-
- push di
-
- push si
-
- ; S = 8
-
- ; T_STRING = 6
-
- mov ax,WORD PTR __FCclenv
-
- mov dx,WORD PTR __FCclenv+2
-
- mov WORD PTR [bp-4],ax
-
- mov WORD PTR [bp-2],dx
-
- push WORD PTR [bp+10]
-
- push WORD PTR [bp+8] ;S
-
- les bx,DWORD PTR [bp-4]
-
- push WORD PTR es:[bx+2]
-
- mov ax,WORD PTR [bp+6] ;T_STRING
-
- mov dx,ss
-
- push dx
-
- push ax
-
- mov ax,128
-
- push ax
-
- mov ax,1
-
- push ax
-
- call FAR PTR __FClccop
-
- add sp,14
-
- ; Line 8
-
- les bx,DWORD PTR [bp-4]
-
- mov ax,WORD PTR es:[bx+2]
-
- cwd
-
- mov WORD PTR $S17_I,ax
-
- mov WORD PTR $S17_I+2,dx
-
- jmp SHORT $L20005
-
- $L22__BLOCKI:
-
- ; Line 13
-
- add WORD PTR $S17_I,-1
-
- adc WORD PTR $S17_I+2,-1
-
- $L20005:
-
- cmp WORD PTR $S17_I+2,0
-
- jl $L19__DOEXI
-
- jg $L20004
-
- cmp WORD PTR $S17_I,1
-
- jb $L19__DOEXI
-
- $L20004:
-
- ; Line 9
-
- mov ax,WORD PTR [bp+8] ;S
-
- mov dx,WORD PTR [bp+10]
-
- add ax,WORD PTR $S17_I
-
- dec ax
-
- push dx
-
- push ax
-
- mov ax,1
-
- push ax
-
- mov ax,OFFSET DGROUP:$SG23
-
- push ds
-
- push ax
-
- mov ax,1
-
- push ax
-
- call FAR PTR __FClccmp
-
- je $L22__BLOCKI
-
- ; Line 10
-
- mov ax,OFFSET DGROUP:$SG25
-
- push ds
-
- push ax
-
- mov ax,1
-
- push ax
-
- mov si,WORD PTR [bp+6] ;T_STRING
-
- mov bx,WORD PTR $S17_I
-
- lea ax,[bx+1][si]
-
- mov dx,ss
-
- dec ax
-
- push dx
-
- push ax
-
- mov ax,1
-
- push ax
-
- push ax
-
- call FAR PTR __FClccop
-
- add sp,14
-
- ; Line 11
-
- jmp SHORT $EX12
-
- $L19__DOEXI:
-
- ; Line 14
-
- mov bx,WORD PTR [bp+6] ;T_STRING
-
- mov di,bx
-
- mov si,OFFSET DGROUP:$SG27
-
- push ss
-
- pop es
-
- movsb
-
- ; Line 15
-
- $EX12:
-
- mov ax,WORD PTR [bp+6] ;T_STRING
-
- mov dx,ss
-
- pop si
-
- pop di
-
- mov sp,bp
-
- pop bp
-
- ret 6
-
-
-
- T_STRING ENDP
-
- FT_STRIN_TEXT ENDS
-
- END
-
-