1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-26 12:29:26 +00:00
millfork/include/apple2_kernel.mfk
2021-01-25 20:15:18 -05:00

26 lines
472 B
Plaintext

#if not(APPLE_2)
#warn apple2_kernel module should be used only on Apple II-compatible targets
#endif
array hires_page_1 [$2000] @$2000
array hires_page_2 [$2000] @$4000
asm void bell() @$FBE4 extern
asm void putchar(byte register(a) char) @$FDED extern
asm void new_line() @$FC62 extern
asm pointer readline() {
jsr $FD6F
ldx #$ff
__readline_loop:
inx
lda $200,x
cmp #$8d
bne __readline_loop
lda #0
sta $200,x
ldx #2
rts
}