You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
597 B
26 lines
597 B
4 years ago
|
package void writeRegister(int aRegisterOffset, ushort aValue)
|
||
|
in
|
||
|
{
|
||
|
assert(aRegisterOffset >= 0);
|
||
|
assert(aRegisterOffset < IMAGE_SIZE);
|
||
|
}
|
||
|
body {
|
||
|
int idx = aRegisterOffset / 2;
|
||
|
mMemCache[idx] = aValue;
|
||
|
uint readback;
|
||
|
uint st;
|
||
|
uint st2;
|
||
|
volatile {
|
||
|
mMemImage[idx] = aValue;
|
||
|
//readback = (cast(uint*)mMemImage.ptr)[ idx/2 ];
|
||
|
//st = mMemImage[ 0x28/2 ];
|
||
|
//st2 = mMemImage[ 0x2A/2 ];
|
||
|
}
|
||
|
//if( aValue != readback )
|
||
|
{
|
||
|
//debug(IRQ) writefln( "writeRegister %04x, %04x", aRegisterOffset, aValue);
|
||
|
}
|
||
|
// comment
|
||
|
}
|
||
|
//
|