home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff267.lzh
/
Diglib
/
diglib.zoo
/
diglib
/
draw.asm
< prev
next >
Wrap
Assembly Source File
|
1989-06-20
|
1KB
|
34 lines
**************************************************************************
*
* DRAW by Jim Locker, SofTech Inc.
* 19 June, 1989
*
* called from AbSoft Fortran
* calls system DRAW routine
* Needed because Amiga.sub is too slow.
*
* USAGE:
*
* Call DRAW(GFXBASE,RastPort,X,Y)
*
***************************************************************************
_LVODRAW EQU -240
DRAW:
MOVE.L 4(A7),A3 *LOAD POINTER TO Y POSITION
MOVE.L (A3),D1 *LOAD Y POSITION
MOVE.L 8(A7),A3 *LOAD POINTER TO X POSITION
MOVE.L (A3),D0 *LOAD X POSITION
MOVE.L 12(A7),A3 *LOAD POINTER TO RP POINTER
MOVEA.L (A3),A1 *LOAD RP POINTER
MOVE.L 16(A7),A3 *LOAD POINTER TO GFXBASE
MOVEM.L A0/A4-A6,-(A7) *SAVE EVERYTHING WE NEED
MOVEA.L (A3),A6 *MOVE IN GRAPHICS LIB POINTER
* MOVE.l d0,-(a7)
* MOVE.l #0,d0
* JSR -114(a6)
JSR _LVODRAW(A6) *CALL DRAW
MOVEM.L (A7)+,A0/A4-A6 *RESTORE EVERYTHING
RTS