
#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;

}

