KarolS / KarolS/millfork

IX index is broken in the Z80 assembler.

Open
#137 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
279
Forks
21
PR merge metrics
No merged PRs in 30d

Description

The following code:
ld IX(1), a

always generates:
ld (ix+$00),a DD 77 00

regardless of the index used.

The IY index is also broken.

Contributor guide

Open the contributing guide

Research direction

Reproduce the supplied `ld IX(1), a` case in the Z80 assembler and compare it with the reported `(ix+$00)` output. Check the corresponding IY case and verify that generated displacements reflect the requested index for both IX and IY.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.