•  Back 
  •  Arbitrary line 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - das Betriebssystem
Author      : 
Version     : tos.hyp (5. März 2013)
Subject     : Programmieren/Atari
Nodes       : 3001
Index Size  : 93602
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Titel
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File6.8.1  Bindings für draw_line                                      TOS

 Pure-C:    void draw_line(int16_t x1, int16_t y1, int16_t x2, int16_t 
            y2);

 Assembler:

            movem.l   D0-D2/A0-A2,-(A7)  ; Register retten
            move.l    pParamblk,A0       ; Zeiger Parameterblock LINEA
            move.w    x1,(38,A0)         ; erste X-Koordinate in LINEA.x1
            move.w    y1,(40,A0)         ; erste Y-Koordinate in LINEA.y1
            move.w    x2,(42,A0)         ; zweite X-Koordinate in LINEA.x2
            move.w    y2,(44,A0)         ; zweite Y-Koordinate in LINEA.y2
            move.w    colbit0,(24,A0)    ; Bit für erste Plane in LINEA.fg_bp_1
            move.w    colbit1,(26,A0)    ; Bit für erste Plane in LINEA.fg_bp_2
            move.w    colbit2,(28,A0)    ; Bit für erste Plane in LINEA.fg_bp_3
            move.w    colbit3,(30,A0)    ; Bit für erste Plane in LINEA.fg_bp_4
            move.w    lnmask,(34,A0)     ; Linestyle in LINEA.ln_mask
            move.w    wmode,(36,A0)      ; Writemode in LINEA.wrt_mode
            move.w    lstlin,(32,A0)     ; Linestyle in LINEA.lstlin
            dc.w      $A003              ; Line-A Opcode
            movem.l   (A7)+,D0-D2/A0-A2  ; Register restaurieren