OSDN Git Service

* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
authorciceron <ciceron>
Tue, 13 Aug 2002 07:46:09 +0000 (07:46 +0000)
committerciceron <ciceron>
Tue, 13 Aug 2002 07:46:09 +0000 (07:46 +0000)
commite5a1b6af89ebfec31fa93826a62cd4654315a0ae
treef0084e3b1b49d650a6e400016b71dc209decb354
parentcad066f0c6bfe6d05aa1ef3caf9b21057582ecd8
* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
* sim-main.h (M6812_CALL_INDIRECT): Add to enum.
(m6811_regs): Add page register.
(cpu_set_page, cpu_get_page): New macros.
(phys_to_virt): New function.
(cpu_get_indexed_operand_addr, cpu_return): Declare.
* gencode.c: Identify indirect addressing mode for call and fix daa.
(gen_function_entry): New param to tell if src8/dst8 locals are
necessary.
(gen_interpreter): Use it to avoid generation of unused variables.
* interp.c (sim_fetch_register): Allow to read page register; page
register, A, B and CCR are only 1 byte wide.
(sim_store_register): Likewise for writing.
sim/m68hc11/ChangeLog
sim/m68hc11/gencode.c
sim/m68hc11/interp.c
sim/m68hc11/m68hc11_sim.c
sim/m68hc11/sim-main.h