Difference between revisions of "Testing library samples"

From MSX Game Library

Line 9: Line 9:
 
|β”œβ”€πŸ“ <tt>targets</tt>  || Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
 
|β”œβ”€πŸ“ <tt>targets</tt>  || Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
 
|-
 
|-
βˆ’
|β””β”€πŸ“ <tt>template</tt>  || Template sample (can be use as base to create a new program)
+
|β”œβ”€πŸ“ <tt>template</tt>  || MSX1 template program (can be use as base to create your new program)
 +
|-
 +
|β””β”€πŸ“ <tt>template_msx2</tt> || MSX2 template program (can be use as base to create your new program)
 
|}
 
|}
  

Revision as of 15:01, 25 December 2022

The MSXgl samples can be tested from their respective directories:

πŸ“ projects
β”œβ”€πŸ“ samples Modules sample programs (VDP, PSG, Sprite, Print, etc.)
β”œβ”€πŸ“ targets Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.)
β”œβ”€πŸ“ template MSX1 template program (can be use as base to create your new program)
β””β”€πŸ“ template_msx2 MSX2 template program (can be use as base to create your new program)

Samples

Each sample have 2 files :

  • .c with sample source code
  • .cmd with Build Tool option overwrite

Execute build.bat and type the name of one of the samples. "s_game" for example. Note: Please don't try to run samples state marked as WIP.

Using command-line (CMD.exe) in this directory, you can directly specify the sample to build using the command:

build s_game

You can also overwrite the target format (unless the sample needs a specific target):

build s_game DOS1

Note: If you have configured an emulator path in MSXgl\projects\default_config.cmd, you can edit build.bat and change "set DoRun=0" to "set DoRun=1" to allow auto-launch of the built program.

Targets

TBC...

Template

TBC...