]> git.sur5r.net Git - cc65/blobdiff - libsrc/tgi/tgi_line.s
remove superfluous ".code" line
[cc65] / libsrc / tgi / tgi_line.s
index d895dc533bcac46e456663d456e2ed5fc6f12958..36f63c8ff08a08ae2d094c4457f0db4f870162a5 100644 (file)
 
 .proc   _tgi_line
 
-        jsr     tgi_linepop     ; Pop/store Y2/X2
-        jsr     popax
-        jsr     tgi_popxy       ; Pop/store X1/Y1 into ptr1/ptr2
-        jmp     tgi_line        ; Call the driver
+        jsr     tgi_linepop             ; Pop/store Y2/X2
+        jsr     popax                   ; Y1
+        sta     tgi_clip_y1
+        stx     tgi_clip_y1+1
+        jsr     popax                   ; X1
+        sta     tgi_clip_x1
+        stx     tgi_clip_x1+1
+        jmp     tgi_clippedline         ; Call the line clipper
 
 .endproc