use of de.mirkosertic.bytecoder.classlib.Address in project Bytecoder by mirkosertic.
the class DirectMemoryAccessTest method testReadAndWrite.
@Test
public void testReadAndWrite() {
MemoryManager.initWithSize(100);
Address theAddress = new Address(20);
Address.setIntValue(theAddress, 5, 10);
int theStored = Address.getIntValue(theAddress, 5);
Assert.assertEquals(10, theStored, 0);
}