Skip to main content

Module raw

Module raw 

Source
Expand description

Raw flat-binary container.

A RawImage is a contiguous byte buffer mapped at a fixed virtual address. The address space outside the buffer is not materialised. This is the format the 6502 stack uses — a 256-byte WozMon ROM at $FF00 is just RawImage::new(bytes, 0xFF00).

Vectors aren’t part of the container itself; they live in the .ud @module block and are resolved by reading specific bytes out of the image (e.g. read_u16_le(0xFFFC) for the 6502 reset vector). The read_* helpers below are the convenience accessors.

Structs§

RawImage
A flat byte image mapped at load_addr.

Enums§

Error
Errors returned by RawImage accessors.

Type Aliases§

Result