Assembler: |
; Save registers
movem.l D0-D2/A0-A2,-(A7)
; Pointer parameter block LINEA
move.l pParamblk,A0
; Top left corner, X-coordinate in LINEA.x1
move.w x1,(38,A0)
; Top left corner, Y-coordinate in LINEA.y1
move.w y1,(40,A0)
; Bottom right corner, X-coordinate in LINEA.x2
move.w x2,(42,A0)
; Bottom right corner, Y-coordinate in LINEA.x2
move.w y2,(44,A0)
; Bit for first plane in LINEA.fg_bp_1
move.w colbit0,(24,A0)
; Bit for first plane in LINEA.fg_bp_2
move.w colbit1,(26,A0)
; Bit for first plane in LINEA.fg_bp_3
move.w colbit2,(28,A0)
; Bit for first plane in LINEA.fg_bp_4
move.w colbit3,(30,A0)
; Writing mode in LINEA.wrt_mode
move.w wmode,(36,A0)
; Line pattern in LINEA.patptr
move.w patptr,(46,A0)
; Number of patterns in LINEA.patmsk
move.w patmsk,(50,A0)
; Clip mode in LINEA.clip
move.w mode,(54,A0)
; Top left clip corner, X-coordinate in LINEA.xmn_clip
move.w cx1,(56,A0)
; Top left clip corner, Y-coordinate in LINEA.ymn_clip
move.w cy1,(58,A0)
; Bottom right clip corner, X-coordinate in LINEA.xmx_clip
move.w cx2,(60,A0)
; Bottom right clip corner, Y-coordinate in LINEA.ymx_clip
move.w cy2,(62,A0)
; Line-A opcode
dc.w $A005
; Restore registers
movem.l (A7)+,D0-D2/A0-A2
|