ti83-sdk/lib83/getchar.c
2023-10-08 01:32:30 +02:00

23 lines
309 B
C

#include <stdio.h>
int getchar(void) __naked {
__asm
push ix
; set 3, (iy+36)
.db 0xfd, 0xcb, 0x24, 0xde
push de
push hl
push bc
rst 0x28
.dw 0x4972
pop bc
pop hl
pop de
pop ix
ret
__endasm;
}