Difference between revisions of "AppExtra"

From MSX Game Library

(Created page with "{{WIP}} This Build tool option allow to add an application related data to binary data (right after the application ). <pre>:: Application extra data (c...")
 
Line 1: Line 1:
{{WIP}}
+
{{WIP}} ''This feature is work-in-progress (waiting for next SDCC update)''
  
 
This [[Build tool]] option allow to add an application related data to binary data (right after the [[AppSignature|application ]]).
 
This [[Build tool]] option allow to add an application related data to binary data (right after the [[AppSignature|application ]]).
Line 10: Line 10:
 
* <tt>DataSize</tt>: The size in byte of the extra data excluding this byte
 
* <tt>DataSize</tt>: The size in byte of the extra data excluding this byte
 
* <tt>DataType</tt>:
 
* <tt>DataType</tt>:
 +
{| class="wikitable"
 +
! Code !! Data type !! Data content
 +
|-
 +
| <tt>0x0X</tt> || ''Reserved'' || --
 +
|-
 +
| <tt>0x10</tt> || Application name || Zero-terminated string
 +
|-
 +
| <tt>0x20</tt> || Number of life/continue address || 2 bytes (RAM address)
 +
|-
 +
| <tt>0x21</tt> || Life-point address || 2 bytes (RAM address)
 +
|-
 +
| <tt>0xFX</tt> || ''Reserved'' || --
 +
|}

Revision as of 12:51, 23 October 2022

WIP This feature is work-in-progress (waiting for next SDCC update)

This Build tool option allow to add an application related data to binary data (right after the application ).

:: Application extra data (comma-separated bytes starting with data size)
set AppExtra=3,5,0x00,0xC1

Here is the format to use: DataSize, DataType, Data1[, Data2, ...], DataType, Data1[, Data2, ...]. Where:

  • DataSize: The size in byte of the extra data excluding this byte
  • DataType:
Code Data type Data content
0x0X Reserved --
0x10 Application name Zero-terminated string
0x20 Number of life/continue address 2 bytes (RAM address)
0x21 Life-point address 2 bytes (RAM address)
0xFX Reserved --