Versions in this module Expand all Collapse all v0 v0.1.0 Apr 13, 2023 Changes in this version + const ADC + const AND + const ASL + const BCC + const BCS + const BEQ + const BIT + const BMI + const BNE + const BPL + const BRK + const BVC + const BVS + const CLC + const CLD + const CLI + const CLV + const CMP + const CPX + const CPY + const CuclesPerFrame + const CyclesPerSecond + const DEC + const DEX + const DEY + const EOR + const INC + const INX + const INY + const JMP + const JSR + const LDA + const LDX + const LDY + const LSR + const Mode_Absolute + const Mode_AbsoluteX + const Mode_AbsoluteY + const Mode_Accumulator + const Mode_Immediate + const Mode_Implied + const Mode_Indirect + const Mode_IndirectX + const Mode_IndirectY + const Mode_Relative + const Mode_ZeroPage + const Mode_ZeroPageX + const Mode_ZeroPageY + const NOP + const ORA + const PHA + const PHP + const PLA + const PLP + const ROL + const ROR + const RTI + const RTS + const SBC + const SEC + const SED + const SEI + const STA + const STX + const STY + const Status_B + const Status_C + const Status_D + const Status_I + const Status_N + const Status_V + const Status_Z + const TAX + const TAY + const TSX + const TXA + const TXS + const TYA + var Blue = "\033[34m" + var Cyan = "\033[36m" + var Gray = "\033[37m" + var Green = "\033[32m" + var OpTable = map[int]OpCodeInfo + var Palette = map[int]color.RGBA + var Purple = "\033[35m" + var Red = "\033[31m" + var Reset = "\033[0m" + var White = "\033[97m" + var Yellow = "\033[33m" + func Adc(self *Cpu) + func And(self *Cpu) + func Asl(self *Cpu) + func Bcc(self *Cpu) + func Bcs(self *Cpu) + func Beq(self *Cpu) + func Bit(self *Cpu) + func Bmi(self *Cpu) + func Bne(self *Cpu) + func BooleanArrayFromByte(b byte) [8]bool + func Bpl(self *Cpu) + func Brk(self *Cpu) + func Bvc(self *Cpu) + func Bvs(self *Cpu) + func Clc(self *Cpu) + func Cld(self *Cpu) + func Cli(self *Cpu) + func Clv(self *Cpu) + func Cmp(self *Cpu) + func Cpx(self *Cpu) + func Cpy(self *Cpu) + func Dec(self *Cpu) + func Dex(self *Cpu) + func Dey(self *Cpu) + func Eor(self *Cpu) + func Inc(self *Cpu) + func Inx(self *Cpu) + func Iny(self *Cpu) + func Jmp(self *Cpu) + func Jsr(self *Cpu) + func Lda(self *Cpu) + func Ldx(self *Cpu) + func Ldy(self *Cpu) + func Lsr(self *Cpu) + func Nop(self *Cpu) + func Ora(self *Cpu) + func Pause() + func Pha(self *Cpu) + func Php(self *Cpu) + func Pla(self *Cpu) + func Plp(self *Cpu) + func Rol(self *Cpu) + func Ror(self *Cpu) + func Rti(self *Cpu) + func Rts(self *Cpu) + func Sbc(self *Cpu) + func Sec(self *Cpu) + func Sed(self *Cpu) + func Sei(self *Cpu) + func Sta(self *Cpu) + func Stx(self *Cpu) + func Sty(self *Cpu) + func Tax(self *Cpu) + func Tay(self *Cpu) + func Tsx(self *Cpu) + func Txa(self *Cpu) + func Txs(self *Cpu) + func Tya(self *Cpu) + type Cpu struct + A byte + CycleCount uint64 + FrameCount uint64 + Memory [0xFFFF + 1]byte + PC uint16 + Quiet bool + RomReader Rom + S byte + SP byte + X byte + Y byte + func (self *Cpu) CheckNZ(value byte) + func (self *Cpu) DecodeInstruction() + func (self *Cpu) EmulateCycle() + func (self *Cpu) GetFlag(flag int) bool + func (self *Cpu) Init() + func (self *Cpu) Pull() byte + func (self *Cpu) Pull16Bit() uint16 + func (self *Cpu) Push(value byte) + func (self *Cpu) Push16Bit(value uint16) + func (self *Cpu) ReadAddress(start uint16) uint16 + func (self *Cpu) ReadAddressByte(start uint16) uint8 + func (self *Cpu) ReadWrappedAddress(a uint16) uint16 + func (self *Cpu) SetFlag(flag int, tovalue bool) + func (self *Cpu) WriteMemory(address uint16, value byte) + type Nes struct + Cpu Cpu + Ppu Ppu + Rom Rom + func (nes *Nes) Init() + type OpCodeInfo struct + BoundaryCross byte + Function fn + Mode int + No_Bytes byte + No_Cycles byte + Operation int + func (o *OpCodeInfo) ModeString() string + func (o *OpCodeInfo) OperationString() string + func (o *OpCodeInfo) RunOperation(cpu *Cpu) + type Ppu struct + Cycle int + Frame uint64 + Memory [0x3FFF + 1]byte + ScanLine int + func (p *Ppu) EmulateCycle() + func (p *Ppu) GetColorFromPalette(c int) color.RGBA + func (p *Ppu) GetInfoForPatternTable() + type Rom struct + func (self *Rom) LoadGame(filename string, nes *Nes) + type RomHeader struct + CHR_banks byte + Control byte + Control2 byte + PGR_banks byte + Ram_banks byte