/* * mouse_bounds_x — ограничить движение курсора по горизонтали * [xmin..xmax] (RST 30h, fn $08). */ #include void mouse_bounds_x(int xmin, int xmax) __naked { (void)xmin; (void)xmax; __asm ;; HL = xmin, DE = xmax. push ix ld c, #0x08 ; HORZ BOUNDS rst #0x30 ; MOUSE pop ix ret __endasm; }