]> git.sur5r.net Git - cc65/blobdiff - libsrc/tgi/tgi_getmaxx.s
Hold the maximum X and Y coordinate in variables instead of calculating them
[cc65] / libsrc / tgi / tgi_getmaxx.s
index 7762993e88a953993d947871adab3ae2d1f17383..c6300a2877095c8892cfa5363a095b1d4079a099 100644 (file)
@@ -8,13 +8,12 @@
 
         .include        "tgi-kernel.inc"
 
-        .import         decax1
-
 
 .proc   _tgi_getmaxx
 
-        jsr     _tgi_getxres
-        jmp     decax1
+        lda     _tgi_xmax
+        ldx     _tgi_xmax+1
+        rts
 
 .endproc