home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
VOGLE.ZIP
/
SRC
/
MSFORT
/
FDRAW.ASM
< prev
next >
Wrap
Assembly Source File
|
2000-02-11
|
5KB
|
269 lines
; Static Name Aliases
;
TITLE fdraw.for
NAME fdraw
.8087
FDRAW_TEXT SEGMENT BYTE PUBLIC 'CODE'
FDRAW_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: FDRAW_TEXT, DS: DGROUP, SS: DGROUP, ES: DGROUP
EXTRN __acrtused:ABS
EXTRN _setdash:FAR
EXTRN _linestyle:FAR
EXTRN _draw:FAR
EXTRN _draw2:FAR
EXTRN _rdraw:FAR
EXTRN _rdraw2:FAR
EXTRN _sdraw2:FAR
EXTRN _rsdraw2:FAR
EXTRN T_STRING:FAR
EXTRN __FCclenv:DWORD
FDRAW_TEXT SEGMENT
; Line 34
PUBLIC SETDASH
SETDASH PROC FAR
push bp
mov bp,sp
; X = 6
les bx,DWORD PTR [bp+6] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _setdash
; Line 35
mov sp,bp
pop bp
ret 4
SETDASH ENDP
; Line 41
PUBLIC LINESTYLE
LINESTYLE PROC FAR
push bp
mov bp,sp
sub sp,268
push di
push si
; S = 6
mov ax,WORD PTR __FCclenv
mov dx,WORD PTR __FCclenv+2
mov WORD PTR [bp-12],ax
mov WORD PTR [bp-10],dx
mov WORD PTR [bp-2],128
les bx,DWORD PTR [bp-12]
mov ax,WORD PTR es:[bx+2]
mov WORD PTR [bp-6],ax
push WORD PTR [bp+8]
push WORD PTR [bp+6] ;S
lea ax,WORD PTR [bp-140]
push ax
mov WORD PTR [bp-8],128
lea ax,WORD PTR [bp-8]
mov dx,ss
mov WORD PTR __FCclenv,ax
mov WORD PTR __FCclenv+2,dx
call FAR PTR T_STRING
lea di,WORD PTR [bp-268]
mov si,ax
push ss
pop es
mov cx,64
rep movsw
lea ax,WORD PTR [bp-268]
push ss
push ax
lea ax,WORD PTR [bp-4]
mov WORD PTR __FCclenv,ax
mov WORD PTR __FCclenv+2,ss
call FAR PTR _linestyle
add sp,4
; Line 42
pop si
pop di
mov sp,bp
pop bp
ret 4
LINESTYLE ENDP
; Line 45
PUBLIC DRAW
DRAW PROC FAR
push bp
mov bp,sp
; X = 14
; Y = 10
; Z = 6
les bx,DWORD PTR [bp+6] ;Z
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+14] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _draw
; Line 46
mov sp,bp
pop bp
ret 12
DRAW ENDP
; Line 49
PUBLIC DRAW2
DRAW2 PROC FAR
push bp
mov bp,sp
; X = 10
; Y = 6
les bx,DWORD PTR [bp+6] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _draw2
; Line 50
mov sp,bp
pop bp
ret 8
DRAW2 ENDP
; Line 53
PUBLIC RDRAW
RDRAW PROC FAR
push bp
mov bp,sp
; X = 14
; Y = 10
; Z = 6
les bx,DWORD PTR [bp+6] ;Z
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+14] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _rdraw
; Line 54
mov sp,bp
pop bp
ret 12
RDRAW ENDP
; Line 57
PUBLIC RDRAW2
RDRAW2 PROC FAR
push bp
mov bp,sp
; X = 10
; Y = 6
les bx,DWORD PTR [bp+6] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _rdraw2
; Line 58
mov sp,bp
pop bp
ret 8
RDRAW2 ENDP
; Line 61
PUBLIC SDRAW2
SDRAW2 PROC FAR
push bp
mov bp,sp
; X = 10
; Y = 6
les bx,DWORD PTR [bp+6] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _sdraw2
; Line 62
mov sp,bp
pop bp
ret 8
SDRAW2 ENDP
; Line 65
PUBLIC RSDRAW2
RSDRAW2 PROC FAR
push bp
mov bp,sp
; X = 10
; Y = 6
les bx,DWORD PTR [bp+6] ;Y
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
les bx,DWORD PTR [bp+10] ;X
fld DWORD PTR es:[bx]
sub sp,8
mov bx,sp
fstp QWORD PTR [bx]
fwait
call FAR PTR _rsdraw2
; Line 66
mov sp,bp
pop bp
ret 8
RSDRAW2 ENDP
FDRAW_TEXT ENDS
END