1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 03:16:45 +00:00

Add readkey and fix putchar for more targets.

This commit is contained in:
Karol Stasiak
2019-06-26 12:59:55 +02:00
parent 22cdd1c768
commit 03f2bacd2b
9 changed files with 79 additions and 9 deletions
+11 -1
View File
@@ -3,7 +3,7 @@
#warn a8_kernel module should be used only on Atari computer-compatible targets
#endif
asm void putchar(byte a) {
noinline asm void putchar(byte a) {
? tax
lda $347
pha
@@ -13,6 +13,16 @@ asm void putchar(byte a) {
rts
}
noinline asm byte readkey() {
lda #$C
sta $2A
lda $E425
pha
lda $E424
pha
rts
}
inline void new_line() {
putchar($9b)
}