/* m6811_cpu.c -- 68HC11&68HC12 CPU Emulation
- Copyright 1999-2019 Free Software Foundation, Inc.
+ Copyright 1999-2021 Free Software Foundation, Inc.
Written by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GDB, GAS, and the GNU binutils.
#include "sim-module.h"
#include "sim-options.h"
+#include <stdlib.h>
+
enum {
OPTION_CPU_RESET = OPTION_START,
OPTION_EMUL_OS,
cpu->cpu_regs.sp = val;
}
-uint16
+static uint16
cpu_get_reg (sim_cpu *cpu, uint8 reg)
{
switch (reg)
}
}
-uint16
+static uint16
cpu_get_src_reg (sim_cpu *cpu, uint8 reg)
{
switch (reg)
}
}
-void
+static void
cpu_set_dst_reg (sim_cpu *cpu, uint8 reg, uint16 val)
{
switch (reg)
}
}
-void
+static void
cpu_set_reg (sim_cpu *cpu, uint8 reg, uint16 val)
{
switch (reg)
return addr;
}
-uint8
+static uint8
cpu_get_indexed_operand8 (sim_cpu *cpu, int restricted)
{
uint16 addr;
return memory_read8 (cpu, addr);
}
-uint16
+static uint16
cpu_get_indexed_operand16 (sim_cpu *cpu, int restricted)
{
uint16 addr;