/* * gotoxy — установить курсор в (x=col, y=row), 0-based. * Обновляет pc_place и ставит курсор BIOS SetCursor (rst 8, $84). */ #include "_conio.h" void gotoxy(uint8_t x, uint8_t y) __naked { (void)x; (void)y; __asm ;; __sdcccall(1), 2 аргумента uint8: x в A, y в L. ld d, l ; D = row (y) ld e, a ; E = col (x) ld (_pc_place), de ld c, #0x84 ; BIOS SetCursor rst #0x08 ret __endasm; }