Skip to content

Keep memory dump sparse #3

@kitlith

Description

@kitlith

// cpu.memory is a sparse js 'array', let's convert it to a full 64KiB array before downloading
var memory = new Uint8Array(0x10000);
for (key in cpu.memory) {
memory[key] = cpu.memory[key];
}

Currently, I am converting the sparse array into a full 64KiB array before creating an ELF with it. instead, we can create a section for each set of consecutive addresses and save on filesize.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions