Simulator: fix 1-byte indirect INC

Signed-off-by: Radu Rendec <radu.rendec@cloudbit.ro>
This commit is contained in:
Radu Rendec 2011-08-22 23:58:45 +03:00 committed by Daniel Beer
parent 89220746d0
commit 2aed1b90a4
1 changed files with 1 additions and 1 deletions

2
sim.c
View File

@ -110,7 +110,7 @@ static int fetch_operand(struct sim_device *dev,
return 0; return 0;
} }
addr = dev->regs[reg]; addr = dev->regs[reg];
dev->regs[reg] += 2; dev->regs[reg] += is_byte ? 1 : 2;
break; break;
} }