MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / initMem32

Function initMem32

source/test/testCPU.cpp:10165–10179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10163}
10164
10165void initMem32() {
10166 memory->memset(CODE_ADDRESS, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10167 memory->memset(STACK_ADDRESS - K_PAGE_SIZE * PAGES_PER_SEG, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10168 memory->memset(HEAP_ADDRESS, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10169
10170 cpu->big = true;
10171 EAX = 0x12345678;
10172 EBX = 0x12345678;
10173 ECX = 0x12345678;
10174 EDX = 0x12345678;
10175 ESP = 0x12345678;
10176 EBP = 0x12345678;
10177 ESI = 0x12345678;
10178 EDI = 0x12345678;
10179}
10180
10181void test32BitMemoryAccess() {
10182 U32 reg1, reg2;

Callers 1

test32BitMemoryAccessFunction · 0.85

Calls 1

memsetMethod · 0.80

Tested by

no test coverage detected