Difference between revisions of "Testing library samples"
From MSX Game Library
(Created page with "The MSXgl samples can by test from their respective directory: {| |- |π <tt>projects</tt> || '''Sample programs''' |- |ββπ <tt>samples</tt> || Modules samp...") |
|||
Line 3: | Line 3: | ||
{| | {| | ||
|- | |- | ||
β | |π <tt>projects</tt> || | + | |π <tt>projects</tt> || |
|- | |- | ||
|ββπ <tt>samples</tt> || Modules sample programs (VDP, PSG, Sprite, Print, etc.) | |ββπ <tt>samples</tt> || Modules sample programs (VDP, PSG, Sprite, Print, etc.) | ||
Line 11: | Line 11: | ||
|ββπ <tt>template</tt> || Template sample (can be use as base to create a new program) | |ββπ <tt>template</tt> || Template sample (can be use as base to create a new program) | ||
|} | |} | ||
+ | |||
+ | == Samples == | ||
+ | |||
+ | Each [[samples|sample]] have 2 files : | ||
+ | * <tt>.c</tt> with sample source code | ||
+ | * <tt>.cmd</tt> with Build Tool option overwrite | ||
+ | |||
+ | Execute <tt>build.bat</tt> and type the name of one of the [[samples]]. "s_game" for example. | ||
+ | |||
+ | Using command-line (CMD.exe) in this directory, you can directly specify the sample to build using the command: | ||
+ | <pre>build s_game</pre> | ||
+ | |||
+ | You can also overwrite the target format <pre>build s_game DOS1</pre>. | ||
+ | |||
+ | |||
+ | ''<u>Note</u>: If you have [[Install|configured an emulator path]] in <tt>MSXgl\projects\default_config.cmd</tt>, you can edit <tt>build.bat</tt> and change "<tt>set DoRun=0</tt>" to "<tt>set DoRun=1</tt>" to allow auto-launch of the built program.'' |
Revision as of 14:48, 16 January 2022
The MSXgl samples can by test from their respective directory:
π projects | |
ββπ samples | Modules sample programs (VDP, PSG, Sprite, Print, etc.) |
ββπ targets | Samples to test all target (Plain ROM, Mapped ROM, DOS, etc.) |
ββπ template | Template sample (can be use as base to create a 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.
Using command-line (CMD.exe) in this directory, you can directly specify the sample to build using the command:
build s_gameYou can also overwrite the target format
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.