We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
TXS: Difference between revisions
From SnesLab
(→External Links: hid archive URL for Carr) |
(→External Links: hid archive URL for Leventhal) |
||
Line 58: | Line 58: | ||
* [[MCS6500 Manual]] page 120 on TXS: https://archive.org/details/mos_microcomputers_programming_manual/page/n139 | * [[MCS6500 Manual]] page 120 on TXS: https://archive.org/details/mos_microcomputers_programming_manual/page/n139 | ||
* [[Carr]], [https://archive.org/details/6502UsersManual/page/n290 page 277] on TXS | * [[Carr]], [https://archive.org/details/6502UsersManual/page/n290 page 277] on TXS | ||
* [[Leventhal]] | * [[Leventhal]], [https://archive.org/details/6502-assembly-language-programming/page/n152 page 3-103] on TXS | ||
* snes9x implementation of TXS: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2415 | * snes9x implementation of TXS: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2415 | ||
Revision as of 21:06, 7 August 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Implied (type 1) | 9A | 1 byte | 2 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
N | V | M | X | D | I | Z | C | |
. | . | . | . | . | . | . | . |
TXS (Transfer X to Stack Pointer) is a 65x instruction that transfers the value of the X index register to the stack pointer.
- If X is 16 bits wide then all 16 bits are transferred.
- If X is 8 bits wide but the stack pointer is 16 bits wide then X is transferred to the low byte and the high byte of the stack pointer is cleared.
- If both X and the stack pointer are 8 bits wide (aka emulation mode) then 8 bits are transferred
No flags are affected.
Syntax
TXS
See Also
External Links
- Eyes & Lichty, page 518 on TXS
- Labiak, page 199 on TXS
- MCS6500 Manual page 120 on TXS: https://archive.org/details/mos_microcomputers_programming_manual/page/n139
- Carr, page 277 on TXS
- Leventhal, page 3-103 on TXS
- snes9x implementation of TXS: https://github.com/snes9xgit/snes9x/blob/master/cpuops.cpp#L2415