/* m6811_cpu.c -- 68HC11&68HC12 CPU Emulation
- Copyright 1999, 2000, 2001, 2002, 2003, 2007, 2008, 2009
- Free Software Foundation, Inc.
+ Copyright 1999-2015 Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GDB, GAS, and the GNU binutils.
/* Returns the address of a 68HC12 indexed operand.
Pre and post modifications are handled on the source register. */
uint16
-cpu_get_indexed_operand_addr (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand_addr (sim_cpu* cpu, int restricted)
{
uint8 reg;
uint16 sval;
/* [n,r] 16-bits offset indexed indirect. */
else if ((code & 0x07) == 3)
{
- if (restrict)
+ if (restricted)
{
return 0;
}
}
else if ((code & 0x4) == 0)
{
- if (restrict)
+ if (restricted)
{
return 0;
}
}
uint8
-cpu_get_indexed_operand8 (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand8 (sim_cpu* cpu, int restricted)
{
uint16 addr;
- addr = cpu_get_indexed_operand_addr (cpu, restrict);
+ addr = cpu_get_indexed_operand_addr (cpu, restricted);
return memory_read8 (cpu, addr);
}
uint16
-cpu_get_indexed_operand16 (sim_cpu* cpu, int restrict)
+cpu_get_indexed_operand16 (sim_cpu* cpu, int restricted)
{
uint16 addr;
- addr = cpu_get_indexed_operand_addr (cpu, restrict);
+ addr = cpu_get_indexed_operand_addr (cpu, restricted);
return memory_read16 (cpu, addr);
}