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-12-30 17:59:32 +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() {
|
2018-12-30 17:59:32 +00:00
|
|
|
ensure_mixedcase()
|
2018-12-17 16:18:29 +00:00
|
|
|
|
|
|
|
#if CBM_64 || CBM_264
|
2020-02-27 00:33:34 +00:00
|
|
|
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()
|
2018-12-30 17:59:32 +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
|
|
|
}
|