mirror of
https://github.com/KarolS/millfork.git
synced 2024-10-31 14:04:58 +00:00
64 lines
2.7 KiB
Markdown
64 lines
2.7 KiB
Markdown
# Examples
|
||
|
||
## Cross-platform examples
|
||
|
||
* [Hello world](crossplatform/hello_world.mfk) (C64/C16/PET/VIC-20/PET/Atari/Apple II/BBC Micro/ZX Spectrum/PC-88/Armstrad CPC/MSX) – simple text output
|
||
|
||
* [Fizzbuzz](crossplatform/fizzbuzz.mfk) (C64/C16/PET/VIC-20/PET/Atari/Apple II/BBC Micro/ZX Spectrum/PC-88/Armstrad CPC/MSX) – everyone's favourite programming task
|
||
|
||
* [Fizzbuzz 2](crossplatform/fizzbuzz2.mfk) (C64/C16/PET/VIC-20/PET/Atari/Apple II/BBC Micro/ZX Spectrum/PC-88/Armstrad CPC/MSX) – an alternative, more extensible implemententation of fizzbuzz
|
||
|
||
* [Fizzbuzz JP](crossplatform/fizzbuzz_jp.mfk) (PC-88/Japanese C64) – Fizzbuzz, but in Japanese
|
||
|
||
* [Text encodings](crossplatform/text_encodings.mfk) (C64/ZX Spectrum) – examples of text encoding features
|
||
|
||
* [Echo](crossplatform/echo.mfk) (C64/C16/ZX Spectrum/PC-88/MSX)– simple text input and output
|
||
|
||
* [Calculator](crossplatform/calculator.mfk) (C64/C16/ZX Spectrum/PC-88/MSX) – simple numeric input and output
|
||
|
||
* [Guessing game](crossplatform/guess.mfk) (C64/C16/ZX Spectrum/PC-88/MSX) – a guess-a-number game
|
||
|
||
* [Fire effect](crossplatform/fire.mfk) (C64/C16/ZX Spectrum) – a simple fire effect
|
||
|
||
* [Bell](crossplatform/bell.mfk) (Apple II/ZX Spectrum) – a program that goes \*ding!\*
|
||
|
||
* [Life](crossplatform/life.mfk) (C64/C16/Atari/ZX Spectrum) – Conway's game of life
|
||
|
||
## Commodore 64 examples
|
||
|
||
### Graphical examples
|
||
|
||
* [Rasterbar](c64/rasterbar.mfk) – simple rasterbar effect
|
||
|
||
* [Softscrolling](c64/softscroll.mfk) – soft-scrolling a single line of text
|
||
|
||
* [Galencia starfield](c64/galencia.mfk) – a port of the starfield effect from the game *Galencia*
|
||
|
||
* [Space Poker \[external link\]](https://github.com/KarolS/spacepoker) – a game made for the 2018 Reset C64 Craptastic 4KB Game Competition
|
||
|
||
### Other examples
|
||
|
||
* Multifile ([source code](c64/multifile.mfk), [platform definition](c64/multifile.ini)) –
|
||
how to create a program made of multiple files loaded on demand
|
||
|
||
* [Panic](c64/panic_test.mfk) – how panic works on C64, showing the address of where it happened
|
||
|
||
## Famicom/NES examples
|
||
|
||
* [NES 101 tutorial example](nes/nestest.mfk) – a port of the tutorial example from the NES 101 tutorial by Michael Martin
|
||
|
||
* [MMC4 example](nes/nestest_mmc4.mfk) – the same thing as above, but uses a MMC4 mapper just to test bankswitching
|
||
|
||
## Game Boy examples
|
||
|
||
* [GB test example](gb/gbtest.mfk) – a partial port of the NES example, with a rudimentary experimental text output implementation
|
||
|
||
## Atari 2600 examples
|
||
|
||
* [Colors](vcs/colors.mfk) – simple static rasterbars
|
||
|
||
## MSX examples
|
||
|
||
* [Encoding test](msx/encoding_test.mfk) – text encoding test; displays three lines of text in three different languages,
|
||
no more one of which will display correctly depending on the default font of your computer.
|