home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
INC_MAG
/
INC_3.MSA
/
SOURCER_LINE_A_A004.S
< prev
next >
Wrap
Text File
|
1990-03-17
|
888b
|
35 lines
*
* Line-A routine $A004
* "Horizontal Line"
*
DC.W $A000 ; Initialize Line-A
;
; The X and Y coordinates
;
MOVE.W #10,38(A0) ;X1
MOVE.W #60,40(A0) ;Y1
MOVE.W #200,42(A0) ;X2
;
; The bitplanes/colors
;
MOVE.W #1,24(A0) ; Bitplane 1 used (a zero here turns bp 1 off)
MOVE.W #0,26(A0) ; Bitplane 2 unused (a one here turns it on)
MOVE.W #0,28(A0) ; Bitplane 3 unused (a one here turns it on)
MOVE.W #0,30(A0) ; Bitplane 4 unused (a one here turns it on)
;
; Other variables
;
MOVE.L #FILL,46(A0)
MOVE.L #$FFFF,50(A0) ; This is the mask for the line style
MOVE.W #0,36(A0) ; Writing mode (0=write,1=Transparent,2=XOR mode and 3=Inverse mode)
MOVE.W #-1,32(a0) ; This one should be -1, don't ask me why!
DC.W $A004 ; Call Line-A
CLR.W -(SP)
TRAP #1
; Here can you "draw" your own linestyle pattern
FILL: DC.W %1111111111111111