1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-01-10 20:29:35 +00:00
millfork/include/apple2_kernel.mfk

26 lines
472 B
Plaintext
Raw Normal View History

#if not(APPLE_2)
#warn apple2_kernel module should be used only on Apple II-compatible targets
#endif
2018-01-23 13:37:03 +01:00
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
2018-12-17 17:18:29 +01:00
asm void new_line() @$FC62 extern
asm pointer readline() {
jsr $FD6A
ldx #$ff
__readline_loop:
inx
lda $200,x
cmp #$8d
bne __readline_loop
lda #0
sta $200,x
ldx #2
rts
}