示例#1
0
void printAddressSpace(CPU *c, uint16_t beg, uint16_t end){
    //prints address space from beg to end
    //prints 16 8-bit vals at a time as hex
    uint16_t counter = beg;
    while(counter < end){
        printf("%03x: ",counter);
        printAddressLine(c, counter);
        counter += 16;
    }
}
static void drawAddresses(HexMemoryData* data, PDUI* uiFuncs, int lineCount, unsigned int charsPerLine)
{
    uint64_t address = data->startAddress;
    int adressSize = data->addressSize;

    for (int i = 0; i < lineCount; ++i)
    {
        printAddressLine(uiFuncs, address, adressSize);
        address += charsPerLine;
    }
}