Skip to content

machine.mem32 etc. need a HAL abstraction #58

@microbit-matt-hillsdon

Description

@microbit-matt-hillsdon

machine.mem32[4 * 9999999] causes an out of bounds read that's trapped by the WASM runtime. Likewise writes.

After recent error handling improvements we stop the sim in the out of bounds cases. Corruption we can't do much about.

I think there are a small number of common scenarios where we might want to support read/write from particular addresses that won't be valid in the sim but could be intercepted by the HAL. More thought required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions