1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-10-30 21:30:52 +00:00
millfork/examples/crossplatform/hello_world.mfk
2018-12-19 22:46:21 +01:00

25 lines
438 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() {
#if CBM_64 || CBM_264
set_bg_color(green)
#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
}