]> git.sur5r.net Git - cc65/commitdiff
Return bg color if coords out of range
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 22 Jun 2002 22:01:14 +0000 (22:01 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 22 Jun 2002 22:01:14 +0000 (22:01 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1326 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/tgi/tgi_getpixel.s

index b70516732e78405130f99ecfd85ab89c8b05c107..1806d9c167adc74992bf4427e43ed4ddaf186743 100644 (file)
@@ -6,13 +6,13 @@
 
 
         .include        "tgi-kernel.inc"
-
+                       
+        .import         return0
         .export         _tgi_getpixel
 
 _tgi_getpixel:
         jsr     tgi_getset      ; Pop args, check range
         bcs     @L9
         jmp     tgi_getpixel    ; Call the driver
-@L9:    rts
-
+@L9:    jmp     return0         ; Assume bg color