comparison m68k_core_x86.c @ 689:858e31f977ae

A couple more indentation fixes
author Michael Pavone <pavone@retrodev.com>
date Thu, 08 Jan 2015 23:20:41 -0800
parents 8c546bc1d773
children fc04781f4d28
comparison
equal deleted inserted replaced
688:8c546bc1d773 689:858e31f977ae
647 case MODE_PC_INDEX_DISP8: 647 case MODE_PC_INDEX_DISP8:
648 cycles(&opts->gen, 6);//TODO: Check to make sure this is correct 648 cycles(&opts->gen, 6);//TODO: Check to make sure this is correct
649 mov_ir(code, inst->address, opts->gen.scratch2, SZ_D); 649 mov_ir(code, inst->address, opts->gen.scratch2, SZ_D);
650 if (src.base == opts->gen.scratch1 && !(inst->dst.params.regs.sec & 1)) { 650 if (src.base == opts->gen.scratch1 && !(inst->dst.params.regs.sec & 1)) {
651 push_r(code, opts->gen.scratch1); 651 push_r(code, opts->gen.scratch1);
652 } 652 }
653 calc_index_disp8(opts, &inst->dst, opts->gen.scratch2); 653 calc_index_disp8(opts, &inst->dst, opts->gen.scratch2);
654 if (src.base == opts->gen.scratch1 && !(inst->dst.params.regs.sec & 1)) { 654 if (src.base == opts->gen.scratch1 && !(inst->dst.params.regs.sec & 1)) {
655 pop_r(code, opts->gen.scratch1); 655 pop_r(code, opts->gen.scratch1);
656 } 656 }
657 if (src.mode == MODE_REG_DIRECT) { 657 if (src.mode == MODE_REG_DIRECT) {
689 } 689 }
690 690
691 if (inst->dst.addr_mode != MODE_AREG) { 691 if (inst->dst.addr_mode != MODE_AREG) {
692 cmp_ir(code, 0, flags_reg, inst->extra.size); 692 cmp_ir(code, 0, flags_reg, inst->extra.size);
693 update_flags(opts, N|Z|V0|C0); 693 update_flags(opts, N|Z|V0|C0);
694 } 694 }
695 if (inst->dst.addr_mode != MODE_REG && inst->dst.addr_mode != MODE_AREG) { 695 if (inst->dst.addr_mode != MODE_REG && inst->dst.addr_mode != MODE_AREG) {
696 m68k_write_size(opts, inst->extra.size); 696 m68k_write_size(opts, inst->extra.size);
697 if (inst->dst.addr_mode == MODE_AREG_POSTINC) { 697 if (inst->dst.addr_mode == MODE_AREG_POSTINC) {
698 inc_amount = inst->extra.size == OPSIZE_WORD ? 2 : (inst->extra.size == OPSIZE_LONG ? 4 : (inst->dst.params.regs.pri == 7 ? 2 : 1)); 698 inc_amount = inst->extra.size == OPSIZE_WORD ? 2 : (inst->extra.size == OPSIZE_LONG ? 4 : (inst->dst.params.regs.pri == 7 ? 2 : 1));
699 addi_areg(opts, inc_amount, inst->dst.params.regs.pri); 699 addi_areg(opts, inc_amount, inst->dst.params.regs.pri);