Added HuC6280 CPU
git-svn-id: svn://svn.cc65.org/cc65/trunk@3617 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
0da9d41a00
commit
50645b8261
2 changed files with 20 additions and 15 deletions
|
@ -135,7 +135,7 @@ Here is a description of all the command line options:
|
||||||
Set the default for the CPU type. The option takes a parameter, which
|
Set the default for the CPU type. The option takes a parameter, which
|
||||||
may be one of
|
may be one of
|
||||||
|
|
||||||
6502, 65SC02, 65C02, 65816, sunplus, sweet16
|
6502, 65SC02, 65C02, 65816, sunplus, sweet16, HuC6280
|
||||||
|
|
||||||
The sunplus cpu is not available in the freeware version, because the
|
The sunplus cpu is not available in the freeware version, because the
|
||||||
instruction set is "proprietary and confidential".
|
instruction set is "proprietary and confidential".
|
||||||
|
@ -2756,7 +2756,7 @@ Here's a list of all control commands and a description, what they do:
|
||||||
cbm Defines the scrcode macro.
|
cbm Defines the scrcode macro.
|
||||||
cpu Defines constants for the .CPU variable.
|
cpu Defines constants for the .CPU variable.
|
||||||
generic Defines generic macros like add and sub.
|
generic Defines generic macros like add and sub.
|
||||||
longbranch Defines conditional long jump macros.
|
longbranch Defines conditional long jump macros.
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
Including a macro package twice, or including a macro package that
|
Including a macro package twice, or including a macro package that
|
||||||
|
@ -3091,10 +3091,10 @@ Here's a list of all control commands and a description, what they do:
|
||||||
Switch the CPU instruction set. The command is followed by a string that
|
Switch the CPU instruction set. The command is followed by a string that
|
||||||
specifies the CPU. Possible values are those that can also be supplied to
|
specifies the CPU. Possible values are those that can also be supplied to
|
||||||
the <tt><ref id="option--cpu" name="--cpu"></tt> command line option,
|
the <tt><ref id="option--cpu" name="--cpu"></tt> command line option,
|
||||||
namely: 6502, 6502X, 65SC02, 65C02, 65816 and sunplus. Please note that
|
namely: 6502, 6502X, 65SC02, 65C02, 65816, sunplus and HuC6280. Please
|
||||||
support for the sunplus CPU is not available in the freeware version,
|
note that support for the sunplus CPU is not available in the freeware
|
||||||
because the instruction set of the sunplus CPU is "proprietary and
|
version, because the instruction set of the sunplus CPU is "proprietary
|
||||||
confidential".
|
and confidential".
|
||||||
|
|
||||||
See: <tt><ref id=".CPU" name=".CPU"></tt>,
|
See: <tt><ref id=".CPU" name=".CPU"></tt>,
|
||||||
<tt><ref id=".IFP02" name=".IFP02"></tt>,
|
<tt><ref id=".IFP02" name=".IFP02"></tt>,
|
||||||
|
@ -3711,6 +3711,7 @@ each supported CPU a constant similar to
|
||||||
CPU_65816
|
CPU_65816
|
||||||
CPU_SUNPLUS
|
CPU_SUNPLUS
|
||||||
CPU_SWEET16
|
CPU_SWEET16
|
||||||
|
CPU_HUC6280
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
is defined. These constants may be used to determine the exact type of the
|
is defined. These constants may be used to determine the exact type of the
|
||||||
|
@ -3724,6 +3725,7 @@ another constant is defined:
|
||||||
CPU_ISET_65816
|
CPU_ISET_65816
|
||||||
CPU_ISET_SUNPLUS
|
CPU_ISET_SUNPLUS
|
||||||
CPU_ISET_SWEET16
|
CPU_ISET_SWEET16
|
||||||
|
CPU_ISET_HUC6280
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
The value read from the <tt/<ref id=".CPU" name=".CPU">/ pseudo variable may
|
The value read from the <tt/<ref id=".CPU" name=".CPU">/ pseudo variable may
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
|
|
||||||
; CPU bitmask constants
|
; CPU bitmask constants
|
||||||
CPU_ISET_NONE = $01
|
CPU_ISET_NONE = $0001
|
||||||
CPU_ISET_6502 = $02
|
CPU_ISET_6502 = $0002
|
||||||
CPU_ISET_6502X = $04
|
CPU_ISET_6502X = $0004
|
||||||
CPU_ISET_65SC02 = $08
|
CPU_ISET_65SC02 = $0008
|
||||||
CPU_ISET_65C02 = $10
|
CPU_ISET_65C02 = $0010
|
||||||
CPU_ISET_65816 = $20
|
CPU_ISET_65816 = $0020
|
||||||
CPU_ISET_SUNPLUS = $40
|
CPU_ISET_SUNPLUS = $0040
|
||||||
CPU_ISET_SWEET16 = $80
|
CPU_ISET_SWEET16 = $0080
|
||||||
|
CPU_ISET_HUC6280 = $0100
|
||||||
|
|
||||||
; CPU capabilities
|
; CPU capabilities
|
||||||
CPU_NONE = CPU_ISET_NONE
|
CPU_NONE = CPU_ISET_NONE
|
||||||
CPU_6502 = CPU_ISET_6502
|
CPU_6502 = CPU_ISET_6502
|
||||||
CPU_6502X = CPU_ISET_6502|CPU_ISET_6502X
|
CPU_6502X = CPU_ISET_6502|CPU_ISET_6502X
|
||||||
|
@ -18,4 +19,6 @@ CPU_65C02 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65C02
|
||||||
CPU_65816 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65816
|
CPU_65816 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65816
|
||||||
CPU_SUNPLUS = CPU_ISET_SUNPLUS
|
CPU_SUNPLUS = CPU_ISET_SUNPLUS
|
||||||
CPU_SWEET16 = CPU_ISET_SWEET16
|
CPU_SWEET16 = CPU_ISET_SWEET16
|
||||||
|
CPU_HUC6280 = CPU_ISET_6502|CPU_ISET_65SC02|CPU_ISET_65C02|CPU_ISET_HUC6280
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue