mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 16:33:19 +00:00
Document predefined constants
git-svn-id: svn://svn.cc65.org/cc65/trunk@3214 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
07ef8251b1
commit
2875922a69
@ -3657,6 +3657,7 @@ each supported CPU a constant similar to
|
||||
CPU_65C02
|
||||
CPU_65816
|
||||
CPU_SUNPLUS
|
||||
CPU_SWEET16
|
||||
</verb></tscreen>
|
||||
|
||||
is defined. These constants may be used to determine the exact type of the
|
||||
@ -3669,6 +3670,7 @@ another constant is defined:
|
||||
CPU_ISET_65C02
|
||||
CPU_ISET_65816
|
||||
CPU_ISET_SUNPLUS
|
||||
CPU_ISET_SWEET16
|
||||
</verb></tscreen>
|
||||
|
||||
The value read from the <tt/<ref id=".CPU" name=".CPU">/ pseudo variable may
|
||||
@ -3698,6 +3700,34 @@ CPUs (the latter two are upwards compatible to the 65SC02).
|
||||
|
||||
|
||||
|
||||
<sect>Predefined constants<label id="predefined-constants"><p>
|
||||
|
||||
For better orthogonality, the assembler defines similar symbols as the
|
||||
compiler, depending on the target system selected:
|
||||
|
||||
<itemize>
|
||||
<item><tt/__ACE__/ - Target system is <tt/ace/
|
||||
<item><tt/__APPLE2__",/ - Target system is <tt/apple2/
|
||||
<item><tt/__APPLE2ENH__",/ - Target system is <tt/apple2enh/
|
||||
<item><tt/__ATARI__/ - Target system is <tt/atari/
|
||||
<item><tt/__ATMOS__",/ - Target system is <tt/atmos/
|
||||
<item><tt/__BBC__",/ - Target system is <tt/bbc/
|
||||
<item><tt/__C128__/ - Target system is <tt/c128/
|
||||
<item><tt/__C16__/ - Target system is <tt/c16/
|
||||
<item><tt/__C64__/ - Target system is <tt/c64/
|
||||
<item><tt/__CBM__/ - Target is a Commodore system
|
||||
<item><tt/__CBM510__/ - Target system is <tt/cbm510/
|
||||
<item><tt/__CBM610__/ - Target system is <tt/cbm610/
|
||||
<item><tt/__GEOS__",/ - Target system is <tt/geos/
|
||||
<item><tt/__LUNIX__",/ - Target system is <tt/lunix/
|
||||
<item><tt/__NES__",/ - Target system is <tt/nes/
|
||||
<item><tt/__PET__/ - Target system is <tt/pet/
|
||||
<item><tt/__PLUS4__/ - Target system is <tt/plus4/
|
||||
<item><tt/__SUPERVISION__",/ - Target system is <tt/supervision/
|
||||
<item><tt/__VIC20__/ - Target system is <tt/vic20/
|
||||
</itemize>
|
||||
|
||||
|
||||
<sect>Structs and unions<label id="structs"><p>
|
||||
|
||||
Structs and unions are special forms of <ref id="scopes" name="scopes">. They
|
||||
|
Loading…
Reference in New Issue
Block a user