Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programming:asm:huc6280_instruction_set [2020/05/09 16:23] – [Jump (JMP)] turboxray | programming:asm:huc6280_instruction_set [2020/07/25 05:18] (current) – ↷ Page moved from programming:programming:asm:huc6280_instruction_set to programming:asm:huc6280_instruction_set arkhan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | //* The following is an automated | + | //* The following is a conversion of the document |
===== The HuC6280 CPU ===== | ===== The HuC6280 CPU ===== | ||
- | The PC-Engine uses a special version of the well-known 6502 CPU, apparently mimicking Rockwell' | + | The PC-Engine uses a special version of the well-known 6502 CPU, apparently mimicking Rockwell' |
===== Add With Carry (ADC) ===== | ===== Add With Carry (ADC) ===== | ||
Line 965: | Line 965: | ||
===== Set Decimal Mode Flag (SED) ===== | ===== Set Decimal Mode Flag (SED) ===== | ||
- | Function The decimal mode flag D in the status register is set to 1. This enables BCD arithmetic. | + | Function The decimal mode flag D in the status register is set to 1. This enables BCD arithmetic. Interrupt calls will save this setting, but clear it for inside the ISR. V flag is not affected for operations that work under Decimal mode. |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1007: | Line 1007: | ||
===== Set T Flag (SET) ===== | ===== Set T Flag (SET) ===== | ||
- | Function The T flag in the status register is set to 1. The T flag is called the " | + | Function The T flag in the status register is set to 1. The T flag is called the " |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1026: | Line 1026: | ||
|Addressing Mode|Syntax|Opcode|# | |Addressing Mode|Syntax|Opcode|# | ||
- | |Implied|ST0 #nn|03 nn|2|4| | + | |Implied|ST0 #nn|03 nn|2|5| |
Flags Affected | Flags Affected | ||
Line 1040: | Line 1040: | ||
|Addressing Mode|Syntax|Opcode|# | |Addressing Mode|Syntax|Opcode|# | ||
- | |Implied|ST1 #nn|13 nn|2|4| | + | |Implied|ST1 #nn|13 nn|2|5| |
Flags Affected | Flags Affected | ||
Line 1054: | Line 1054: | ||
|Addressing Mode|Syntax|Opcode|# | |Addressing Mode|Syntax|Opcode|# | ||
- | |Implied|ST2 #nn|23 nn|2|4| | + | |Implied|ST2 #nn|23 nn|2|5| |
Flags Affected | Flags Affected | ||
Line 1154: | Line 1154: | ||
===== Transfer Alternate Increment (TAI) ===== | ===== Transfer Alternate Increment (TAI) ===== | ||
- | Function Execute a memory move where the source address alternates between two addresses, and the destination address increments with each loop cycle. This is an extremely powerful instruction, | + | Function Execute a memory move where the source address alternates between two addresses, and the destination address increments with each loop cycle. This is an extremely powerful instruction, |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1224: | Line 1224: | ||
===== Transfer Increment Alternate (TIA) ===== | ===== Transfer Increment Alternate (TIA) ===== | ||
- | Function Execute a memory move where the source address increments, and the destination address alternates between two addresses with each loop cycle. This is an extremely powerful instruction, | + | Function Execute a memory move where the source address increments, and the destination address alternates between two addresses with each loop cycle. This is an extremely powerful instruction, |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1238: | Line 1238: | ||
===== Transfer Decrement Decrement (TDD) ===== | ===== Transfer Decrement Decrement (TDD) ===== | ||
- | Function Execute a memory move where the source and destination addresses decrement with each loop cycle. This is an extremely powerful instruction, | + | Function Execute a memory move where the source and destination addresses decrement with each loop cycle. This is an extremely powerful instruction, |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1252: | Line 1252: | ||
===== Transfer Increment None (TIN) ===== | ===== Transfer Increment None (TIN) ===== | ||
- | Function Execute a memory move where the source address increments with each loop cycle. This is an extremely powerful instruction, | + | Function Execute a memory move where the source address increments with each loop cycle. This is an extremely powerful instruction, |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1266: | Line 1266: | ||
===== Transfer Increment Increment (TII) ===== | ===== Transfer Increment Increment (TII) ===== | ||
- | Function Execute a memory move where the source and destination addresses increment with each loop cycle. This is an extremely powerful instruction, | + | Function Execute a memory move where the source and destination addresses increment with each loop cycle. This is an extremely powerful instruction, |
Adressing Modes & Opcodes | Adressing Modes & Opcodes | ||
Line 1366: | Line 1366: | ||
|N|V|T|B|D|I|Z|C| | |N|V|T|B|D|I|Z|C| | ||
|N|-|0|-|-|-|Z|-| | |N|-|0|-|-|-|Z|-| | ||
+ | |||
+ | ===== Transfer Y Register to Accumulator (TYA) ===== | ||
Function Transfer the value in the Y register to the accumulator. The value of the Y register is not changed. | Function Transfer the value in the Y register to the accumulator. The value of the Y register is not changed. |