MCPcopy
hub / github.com/fogleman/nes / bit

Method bit

nes/cpu.go:577–582  ·  view source on GitHub ↗

BIT - Bit Test

(info *stepInfo)

Source from the content-addressed store, hash-verified

575
576// BIT - Bit Test
577func (cpu *CPU) bit(info *stepInfo) {
578 value := cpu.Read(info.address)
579 cpu.V = (value >> 6) & 1
580 cpu.setZ(value & cpu.A)
581 cpu.setN(value)
582}
583
584// BMI - Branch if Minus
585func (cpu *CPU) bmi(info *stepInfo) {

Callers

nothing calls this directly

Calls 3

setZMethod · 0.95
setNMethod · 0.95
ReadMethod · 0.65

Tested by

no test coverage detected