Added clipping for lines.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4452 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2009-11-06 15:26:46 +00:00
parent 24e68f5df3
commit e12bd13e16
6 changed files with 590 additions and 508 deletions

View File

@@ -7,17 +7,18 @@
.include "tgi-kernel.inc"
.import popax
.importzp ptr3, ptr4
.proc tgi_linepop
sta ptr4 ; Y2
stx ptr4+1
sta tgi_clip_y2 ; Y2
stx tgi_clip_y2+1
sta _tgi_cury
stx _tgi_cury+1
jsr popax
sta ptr3 ; X2
stx ptr3+1
sta tgi_clip_x2 ; X2
stx tgi_clip_x2+1
sta _tgi_curx
stx _tgi_curx+1
rts