ti83-sdk/lib83/getchar.c

23 lines
309 B
C
Raw Normal View History

2023-10-07 23:32:30 +00:00
#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;
}