www.pudn.com > ncdzsrc.rar
To Read all the content
[file head]:
/*
must fix:
callm
chk
*/
/* ======================================================================== */
/* ========================= LICENSING &amt; COPYRIGHT ======================== */
/* ======================================================================== */
/*
* MUSASHI
* Version 3.3
*
* A portable Motorola M680x0 processor emulation engine.
* Copyright 1998-2001 Karl Stenerud. All rights reserved.
*
* This code may be freely used for non-commercial purposes as long as this
* copyright notice remains unaltered in the source code and any binary files
* containing this code in compiled form.
*
* All other lisencing terms must be negotiated with the author
* (Karl Stenerud).
*
* The latest version of this code can be obtained at:
* http://kstenerud.cjb.net
*/
/* Special thanks to Bart Trzynadlowski for his insight into the
* undocumented features of this chip:
*
*
... ...
[file tail]:
... ...
);
m68ki_write_8(ea_dst, src &amt; 0xff);
return;
}
m68ki_exception_illegal();
}
M68KMAKE_OP(unpk, 16, mm, axy7)
{
if(CPU_TYPE_IS_EC020_PLUS(CPU_TYPE))
{
uint src = OPER_A7_PD_8();
uint ea_dst;
src = (((src << 4) &amt; 0x0f00) | (src &amt; 0x000f)) + OPER_I_16();
ea_dst = EA_A7_PD_8();
m68ki_write_8(ea_dst, (src >> 8) &amt; 0xff);
ea_dst = EA_A7_PD_8();
m68ki_write_8(ea_dst, src &amt; 0xff);
return;
}
m68ki_exception_illegal();
}
M68KMAKE_OP(unpk, 16, mm, .)
{
if(CPU_TYPE_IS_EC020_PLUS(CPU_TYPE))
{
/* Note: AX and AY are reversed in Motorola's docs */
uint src = OPER_AY_PD_8();
uint ea_dst;
src = (((src << 4) &amt; 0x0f00) | (src &amt; 0x000f)) + OPER_I_16();
ea_dst = EA_AX_PD_8();
m68ki_write_8(ea_dst, (src >> 8) &amt; 0xff);
ea_dst = EA_AX_PD_8();
m68ki_write_8(ea_dst, src &amt; 0xff);
return;
}
m68ki_exception_illegal();
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
M68KMAKE_END