mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-25 21:29:25 +00:00
26 lines
461 B
Plaintext
26 lines
461 B
Plaintext
// 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"
|
|
|
|
void main() {
|
|
ensure_mixedcase()
|
|
|
|
#if CBM_64 || CBM_264
|
|
set_bg_color(white)
|
|
#endif
|
|
#if CBM_64 || CBM_264 || ZX_SPECTRUM
|
|
set_border(red)
|
|
#endif
|
|
|
|
putstr(hello_world, hello_world.length)
|
|
new_line()
|
|
putstrz("Hello world again"z)
|
|
|
|
#if not(CPM)
|
|
while(true){}
|
|
#endif
|
|
|
|
} |