예제 #1
0
파일: Cpu.cs 프로젝트: josh-perry/gbboi-emu
 public byte ReadImmediateN()
 {
     return(Mmu.ReadByte((ushort)(Registers.PC.Value + 1)));
 }
예제 #2
0
파일: Cpu.cs 프로젝트: josh-perry/gbboi-emu
 public ushort ReadImmediateNN()
 {
     return(Mmu.ReadWord((ushort)(Registers.PC.Value + 1)));
 }
예제 #3
0
파일: Cpu.cs 프로젝트: josh-perry/gbboi-emu
        public void FetchInstruction()
        {
            var op = (ushort)((Mmu.ReadByte(Registers.PC.Value) << 8) | Mmu.ReadByte((ushort)(Registers.PC.Value + 1)));

            CurrentInstruction = new Instruction(op);
        }