Difference between revisions of "SDCC"

From MSX Game Library

Line 2: Line 2:
  
 
The assembler, sdasz80, is based on ASxxxx cross assembles.
 
The assembler, sdasz80, is based on ASxxxx cross assembles.
 +
 +
sdasz80 syntax is almost standard except for:
 +
* Define instructions numeral values: must be prefixed with # character.
 +
* Define directive: must be prefix with . character.
 +
* Access to IX and IY register using offset: offset have to be write into parentheses before the register name.
 +
 +
{|
 +
|-
 +
| Standard
 +
| sdasz80
 +
|}
  
 
Links:
 
Links:
 
* [http://sdcc.sourceforge.net/doc/sdccman.pdf SDCC documentation]
 
* [http://sdcc.sourceforge.net/doc/sdccman.pdf SDCC documentation]
 
* [https://shop-pdp.net/ashtml/asmlnk.pdf ASxxxx documentation]
 
* [https://shop-pdp.net/ashtml/asmlnk.pdf ASxxxx documentation]

Revision as of 09:25, 22 January 2024

SDCC is the toolchain used in MSXGL to compile, assemble and link the sources files.

The assembler, sdasz80, is based on ASxxxx cross assembles.

sdasz80 syntax is almost standard except for:

  • Define instructions numeral values: must be prefixed with # character.
  • Define directive: must be prefix with . character.
  • Access to IX and IY register using offset: offset have to be write into parentheses before the register name.
Standard sdasz80

Links: