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

Function initMem16

source/test/testCPU.cpp:10578–10592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10576}
10577
10578void initMem16() {
10579 memory->memset(CODE_ADDRESS, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10580 memory->memset(STACK_ADDRESS - K_PAGE_SIZE * PAGES_PER_SEG, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10581 memory->memset(HEAP_ADDRESS, 0, K_PAGE_SIZE * PAGES_PER_SEG);
10582
10583 cpu->big = false;
10584 EAX = 0x12345678;
10585 EBX = 0x12345678;
10586 ECX = 0x12345678;
10587 EDX = 0x12345678;
10588 ESP = 0x12345678;
10589 EBP = 0x12345678;
10590 ESI = 0x12345678;
10591 EDI = 0x12345678;
10592}
10593
10594void test16BitMemoryAccess() {
10595 // Mod 00

Callers 1

test16BitMemoryAccessFunction · 0.85

Calls 1

memsetMethod · 0.80

Tested by

no test coverage detected