Search in sources :

Example 1 with Address

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);
}
Also used : Address(de.mirkosertic.bytecoder.classlib.Address) Test(org.junit.Test)

Aggregations

Address (de.mirkosertic.bytecoder.classlib.Address)1 Test (org.junit.Test)1