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