m68000: Fix byte order in movep, thanks qkumba

This commit is contained in:
Olivier Galibert 2023-01-17 22:38:53 +01:00
parent c763d714c7
commit 6c04555b7f
9 changed files with 50 additions and 50 deletions

View File

@ -5583,7 +5583,7 @@ void m68000_device::movep_w_das_dd_df() // 0108 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -5603,7 +5603,7 @@ void m68000_device::movep_w_das_dd_df() // 0108 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -6660,7 +6660,7 @@ void m68000_device::movep_l_das_dd_df() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -6678,7 +6678,7 @@ void m68000_device::movep_l_das_dd_df() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -6697,7 +6697,7 @@ void m68000_device::movep_l_das_dd_df() // 0148 f1f8
}
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -6717,7 +6717,7 @@ void m68000_device::movep_l_das_dd_df() // 0148 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -5583,7 +5583,7 @@ void m68000_device::movep_w_das_dd_dfm() // 0108 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -5603,7 +5603,7 @@ void m68000_device::movep_w_das_dd_dfm() // 0108 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -6660,7 +6660,7 @@ void m68000_device::movep_l_das_dd_dfm() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -6678,7 +6678,7 @@ void m68000_device::movep_l_das_dd_dfm() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -6697,7 +6697,7 @@ void m68000_device::movep_l_das_dd_dfm() // 0148 f1f8
}
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -6717,7 +6717,7 @@ void m68000_device::movep_l_das_dd_dfm() // 0148 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -6348,7 +6348,7 @@ void m68000_device::movep_w_das_dd_dp() // 0108 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -6370,7 +6370,7 @@ void m68000_device::movep_w_das_dd_dp() // 0108 f1f8
}
[[fallthrough]]; case 6:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -7566,7 +7566,7 @@ void m68000_device::movep_l_das_dd_dp() // 0148 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -7586,7 +7586,7 @@ void m68000_device::movep_l_das_dd_dp() // 0148 f1f8
}
[[fallthrough]]; case 6:
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -7607,7 +7607,7 @@ void m68000_device::movep_l_das_dd_dp() // 0148 f1f8
[[fallthrough]]; case 8:
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -7629,7 +7629,7 @@ void m68000_device::movep_l_das_dd_dp() // 0148 f1f8
}
[[fallthrough]]; case 10:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -6348,7 +6348,7 @@ void m68000_device::movep_w_das_dd_dpm() // 0108 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -6370,7 +6370,7 @@ void m68000_device::movep_w_das_dd_dpm() // 0108 f1f8
}
[[fallthrough]]; case 6:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -7566,7 +7566,7 @@ void m68000_device::movep_l_das_dd_dpm() // 0148 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -7586,7 +7586,7 @@ void m68000_device::movep_l_das_dd_dpm() // 0148 f1f8
}
[[fallthrough]]; case 6:
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -7607,7 +7607,7 @@ void m68000_device::movep_l_das_dd_dpm() // 0148 f1f8
[[fallthrough]]; case 8:
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -7629,7 +7629,7 @@ void m68000_device::movep_l_das_dd_dpm() // 0148 f1f8
}
[[fallthrough]]; case 10:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -5583,7 +5583,7 @@ void m68000_device::movep_w_das_dd_if() // 0108 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -5603,7 +5603,7 @@ void m68000_device::movep_w_das_dd_if() // 0108 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -6660,7 +6660,7 @@ void m68000_device::movep_l_das_dd_if() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -6678,7 +6678,7 @@ void m68000_device::movep_l_das_dd_if() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -6697,7 +6697,7 @@ void m68000_device::movep_l_das_dd_if() // 0148 f1f8
}
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -6717,7 +6717,7 @@ void m68000_device::movep_l_das_dd_if() // 0148 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -5583,7 +5583,7 @@ void m68000_device::movep_w_das_dd_ifm() // 0108 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -5603,7 +5603,7 @@ void m68000_device::movep_w_das_dd_ifm() // 0108 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -6660,7 +6660,7 @@ void m68000_device::movep_l_das_dd_ifm() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -6678,7 +6678,7 @@ void m68000_device::movep_l_das_dd_ifm() // 0148 f1f8
return;
}
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -6697,7 +6697,7 @@ void m68000_device::movep_l_das_dd_ifm() // 0148 f1f8
}
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -6717,7 +6717,7 @@ void m68000_device::movep_l_das_dd_ifm() // 0148 f1f8
return;
}
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -6348,7 +6348,7 @@ void m68000_device::movep_w_das_dd_ip() // 0108 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -6370,7 +6370,7 @@ void m68000_device::movep_w_das_dd_ip() // 0108 f1f8
}
[[fallthrough]]; case 6:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -7566,7 +7566,7 @@ void m68000_device::movep_l_das_dd_ip() // 0148 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -7586,7 +7586,7 @@ void m68000_device::movep_l_das_dd_ip() // 0148 f1f8
}
[[fallthrough]]; case 6:
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -7607,7 +7607,7 @@ void m68000_device::movep_l_das_dd_ip() // 0148 f1f8
[[fallthrough]]; case 8:
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -7629,7 +7629,7 @@ void m68000_device::movep_l_das_dd_ip() // 0148 f1f8
}
[[fallthrough]]; case 10:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -6348,7 +6348,7 @@ void m68000_device::movep_w_das_dd_ipm() // 0108 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 368 mpiw3
m_aob = m_au;
@ -6370,7 +6370,7 @@ void m68000_device::movep_w_das_dd_ipm() // 0108 f1f8
}
[[fallthrough]]; case 6:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;
@ -7566,7 +7566,7 @@ void m68000_device::movep_l_das_dd_ipm() // 0148 f1f8
}
[[fallthrough]]; case 4:
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34e mpil3
m_aob = m_au;
@ -7586,7 +7586,7 @@ void m68000_device::movep_l_das_dd_ipm() // 0148 f1f8
}
[[fallthrough]]; case 6:
m_au = m_au + 2;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 34f mpil4
m_aob = m_au;
@ -7607,7 +7607,7 @@ void m68000_device::movep_l_das_dd_ipm() // 0148 f1f8
[[fallthrough]]; case 8:
set_16h(m_da[rx], m_dbin);
m_au = m_au + 2;
set_8(m_dbin, m_edb);
set_8h(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=R.dbin:m_dbin d=none
// 368 mpiw3
m_aob = m_au;
@ -7629,7 +7629,7 @@ void m68000_device::movep_l_das_dd_ipm() // 0148 f1f8
}
[[fallthrough]]; case 10:
m_au = m_pc + 4;
set_8h(m_dbin, m_edb);
set_8(m_dbin, m_edb);
// alu r=13 c=0 m=..... i=b...... ALU.eor a=none d=none
// 36a mpiw4
m_aob = m_au;

View File

@ -1675,9 +1675,9 @@ def generate_base_code_for_microcode(ir, irmask, madr, tvn, group01):
if to_dbin:
if no_high_byte:
code_to_sort.append(["=8h", R.dbin, R.edb])
elif no_low_byte:
code_to_sort.append(["=8", R.dbin, R.edb])
elif no_low_byte:
code_to_sort.append(["=8h", R.dbin, R.edb])
else:
code_to_sort.append(["=", R.dbin, R.edb])