Skip to content

VICE backend: load() directive doesn't load PRG into VICE memory #12

@barryw

Description

@barryw

Summary

When using the VICE backend, the load() directive in test files doesn't actually load the PRG into VICE memory. Tests only work if the program is manually loaded via vice.autostart first.

Current Behavior

load("/path/to/program.prg", strip_header = true)

With VICE backend, this doesn't result in the PRG being loaded into VICE. Memory remains uninitialized.

Expected Behavior

The VICE backend should handle load() by either:

  1. Calling vice.autostart with run: false
  2. Reading the PRG file and writing it to VICE memory via vice.memory.write

Workaround

Manually load the program before running tests:

curl -X POST http://127.0.0.1:6510/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"vice.autostart","arguments":{"path":"/path/to/program.prg","run":false}},"id":1}'

Then run tests without load() directive.

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