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"
16 jsr tgi_popxy ; Pop X/Y into ptr1/ptr2
18 ; Are the coordinates out of range? First check if any coord is negative.
22 bmi @L9 ; Bail out if negative
24 ; Check if X is larger than the maximum x coord. If so, bail out
32 ; Check if Y is larger than the maximum y coord.