/* * wherexy — обе координаты курсора одним вызовом: * (row << 8) | col в DE. Читает курсор BIOS GetCursor (rst 8, $8E), * попутно обновляя pc_place. */ #include "_conio.h" uint16_t wherexy(void) __naked { __asm ld c, #0x8e ; BIOS GetCursor: D = row, E = col rst #0x08 ld (_pc_place), de ret ; __sdcccall(1): uint16_t в DE __endasm; }