* m68hc11_sim.c (cpu_special): Handle call and rtc instructions.
authorStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 07:46:09 +0000 (07:46 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Tue, 13 Aug 2002 07:46:09 +0000 (07:46 +0000)
commit63f36def60e0ebb54113a819db684887d036b387
tree9733144136e5c4f171c1dd6c92c1d1e0f664cfc2
parentbed69f0439536ace7602fdfc7a04dde1dc68d31a
* 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