Skip to content

mze: --cycles flag reports 0 T-states #11

@oisee

Description

@oisee

Description

mze --cycles claims to show T-state cycle count, but always reports 0 T-states regardless of program complexity.

Reproduction

# Create a simple test binary: LD A,2 → OUT ($FE),A → RET
printf '\x3E\x02\xD3\xFE\xC9' > /tmp/test.bin
mze /tmp/test.bin --cycles -t spectrum --load 0x8000 --timeout 1000 -v

Expected: Total execution: 28 T-states (7 + 11 + 10)
Actual: Total execution: 0 T-states

Context

We're writing a Z80 book ("Coding the Impossible") and want to use mze --cycles to validate T-state annotations in chapter examples. This would enable automated cycle count verification via make test-run.

Impact

Blocks automated T-state validation for the book's ~25 assembly examples.

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