MCPcopy Create free account
hub / github.com/fogleman/nes / txa

Method txa

nes/cpu.go:902–905  ·  view source on GitHub ↗

TXA - Transfer X to Accumulator

(info *stepInfo)

Source from the content-addressed store, hash-verified

900
901// TXA - Transfer X to Accumulator
902func (cpu *CPU) txa(info *stepInfo) {
903 cpu.A = cpu.X
904 cpu.setZN(cpu.A)
905}
906
907// TXS - Transfer X to Stack Pointer
908func (cpu *CPU) txs(info *stepInfo) {

Callers

nothing calls this directly

Calls 1

setZNMethod · 0.95

Tested by

no test coverage detected