1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-01-11 12:29:46 +00:00
millfork/include/c64_basic.mfk

31 lines
577 B
Plaintext
Raw Normal View History

2017-12-07 00:23:30 +01:00
// Routines from C64 BASIC ROM
#if not(CBM_64)
#warn c64_basic module should be only used on C64-compatible targets
#endif
2017-12-07 00:23:30 +01:00
import c64_kernal
2018-12-19 19:01:53 +01:00
import err
2017-12-07 00:23:30 +01:00
// print a 16-bit number on the standard output
2018-12-19 19:01:53 +01:00
asm void putword_basic(word xa) @$BDCD extern
2018-12-19 22:26:10 +01:00
alias putword = putword_basic!
2018-12-19 19:01:53 +01:00
asm void __readline_basic() @$A560 extern
pointer readline_basic() {
__readline_basic()
return readline_out
}
alias readline = readline_basic!
2018-01-20 22:03:56 +01:00
const pointer readline_out = $200
2018-12-19 19:01:53 +01:00
inline word readword_basic() {
return strz2word(readline_basic())
2018-01-20 22:03:56 +01:00
}
2018-12-19 19:01:53 +01:00
alias readword = readword_basic!