RIsPtInIval16.asm
bitfixer_bitfixer/dg/z88dk/libsrc/rect/RIsPtInIval16.asm

; Rectangle, Intervals and Points
; 05.2006 aralbrec

PUBLIC RIsPtInIval16

; Determine if 16-bit point lies in a 16-bit interval.
; Interval bounds wrap across 0-65535 boundaries.
;
; enter : hl = coordinate of point
;         bc = interval start coordinate
;         de = width of interval
; exit  : carry flag set = in interval
; used  : f, hl

.RIsPtInIval16

   or a
   sbc hl,bc
   or a
   sbc hl,de
   ret
