Skip to content

Commit

Permalink
Attempt masking opcode to hint the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Oct 18, 2023
1 parent 0e9c49d commit 2c744ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyboy/core/opcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5243,6 +5243,8 @@ def execute_opcode(cpu, opcode):
b = cpu.mb.getitem(pc+1)
v = (a << 8) + b

opcode &= 0x1FF

if opcode == 0x00:
return NOP_00(cpu)
elif opcode == 0x01:
Expand Down

0 comments on commit 2c744ef

Please sign in to comment.