1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-08 20:06:24 +00:00
millfork/examples/crossplatform/hello_world.mfk

25 lines
438 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
2018-07-06 22:58:44 +00:00
array hello_world = "hello world"
2017-12-06 23:23:30 +00:00
2018-12-17 16:18:29 +00:00
void main() {
#if CBM_64 || CBM_264
set_bg_color(green)
#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
}