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()
|
2018-07-27 22:58:20 +00:00
|
|
|
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
|
|
|
}
|