Gilbert Francois Duivesteijn
The picture above shows the final result on a real MSX, loaded as binary from a cassette. Follow the steps below and you have it running yourself in minutes.
The tutorial is as close as possible equal to the version cross-platform developed on a PC or Mac, described in Hello World: compile, run and debug on openMSX, deploy on a real cartridge.
Step 1: Watch the tutorial from ChibiAkumas to know what the code is doing:
Step 2: Follow the description below...
|Type in the code. Note the small differences, compared to ROM version mentioned earlier. This binary will be loaded from tape. The ORG address is different and when the program finishes, we return to Basic, instead of calling the HALT instruction.|
|Put in an empty cassette in the datarecorder. Go to |
|To compile the program, press |
|To run the program, press |
|Voila! It works. Because we started the program with the command |
|Finally, we want to save our binary to cassette, to be able to run it everywhere. To be able to do that, we need to find the end address of our binary. Goto |
|The format for saving a binary is: |
|Moment of truth. The source file and binary file have been saved to tape. Let's reset the computer, rewind the tape and run our fresh made program: |
If you're ready for using Champ in its full potential, check out Champ: Debug, set breakpoints, monitor registers, step though code.
<ASSEMBLER> L => [ret].