funes-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Nes.CPU.Instructions.Bitwise

Synopsis

Test bit

bit :: AddressingMode -> CPU r () Source #

test if one or more bits are set in a target memory location

https://www.nesdev.org/obelisk-6502-guide/reference.html#BIT

Bit logic

and :: AddressingMode -> CPU r () Source #

Register A = Register A & _value in memory_

https://www.nesdev.org/obelisk-6502-guide/reference.html#AND

ora :: AddressingMode -> CPU r () Source #

Register A = Register A | _value in memory_

https://www.nesdev.org/obelisk-6502-guide/reference.html#ORA

eor :: AddressingMode -> CPU r () Source #

Register A = Register A ^ _value in memory_

https://www.nesdev.org/obelisk-6502-guide/reference.html#EOR

Rotate

Unofficial

sre :: AddressingMode -> CPU r () Source #

(Unofficial) Equivalent to LSR and XOR

slo :: AddressingMode -> CPU r () Source #

(Unofficial) Equivalent to ASL value then ORA value, except supporting more addressing modes

arr :: AddressingMode -> CPU r () Source #

(Unofficial) part of this command are some ADC mechanisms. following effects appear after AND but before ROR

Source: https://github.com/bugzmanov/nes_ebook/blob/785b9ed8b803d9f4bd51274f4d0c68c14a1b3a8b/code/ch8/src/cpu.rs#L1028

Internal