Skip to content

SRAM in hexadecimal mode corrupts data when the data bus is more than 8 bits wide #333

@programmerjake

Description

@programmerjake

Most likely caused by masking to 8 bits rather than the bit-width of the SRAM:

String toHex(int val) {
String h = Integer.toHexString(val & 0xFF).toUpperCase();
return h.length() < 2 ? "0" + h : h;
}

Reproduction steps:
Create 16-bit wide SRAM
initialize some memory cell to 65535
edit and enable hex mode
observe how the value is truncated to 0xFF

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions