2 ; Ullrich von Bassewitz, 22.06.2002
4 ; Helper function for getpixel/setpixel. Load X/Y from stack and check if
5 ; the coordinates are valid. Return carry clear if so.
8 .include "tgi-kernel.inc"
21 ; Are the coordinates are out of range? First check if any ccord is negative.
26 bcs @L9 ; Bail out if negative
28 ; Check if X is larger than the maximum x coord. If so, bail out
36 ; Check if Y is larger than the maximum y coord.