1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-05-31 18:41:30 +00:00
millfork/examples/crossplatform/hello_world.mfk

26 lines
461 B
Plaintext
Raw Normal View History

2017-12-06 23:23:30 +00:00
// compile with
// java -jar millfork.jar -I ${PATH}/include -t ${platform} ${PATH}/examples/hello_world/hello_world.mfk
import stdio
array hello_world = "Hello world"
2017-12-06 23:23:30 +00:00
2018-12-17 16:18:29 +00:00
void main() {
ensure_mixedcase()
2018-12-17 16:18:29 +00:00
#if CBM_64 || CBM_264
set_bg_color(white)
2018-12-17 16:18:29 +00:00
#endif
#if CBM_64 || CBM_264 || ZX_SPECTRUM
set_border(red)
#endif
2017-12-06 23:23:30 +00:00
putstr(hello_world, hello_world.length)
2018-12-17 16:18:29 +00:00
new_line()
putstrz("Hello world again"z)
2018-12-17 16:18:29 +00:00
#if not(CPM)
2017-12-06 23:23:30 +00:00
while(true){}
2018-12-17 16:18:29 +00:00
#endif
2017-12-06 23:23:30 +00:00
}