Skip to content

replaced call to ti.LoadDEInd_s since A could be clobbered#714

Merged
ZERICO2005 merged 1 commit intomasterfrom
patch_libload
Mar 10, 2026
Merged

replaced call to ti.LoadDEInd_s since A could be clobbered#714
ZERICO2005 merged 1 commit intomasterfrom
patch_libload

Conversation

@ZERICO2005
Copy link
Contributor

This appears to be the implementation used for ti.LoadDEInd_s which preserves A:

ti.LoadDEInd_s:
ld de, 0
ld e, (hl)
inc hl
ld d, (hl)
inc hl

However, ti.LoadHLInd_s destroys A despite being a similar routine, this indicates that a future version of ti.LoadDEInd_s may destroy A, so I have inlined the call to prevent A from being destroyed.

@ZERICO2005 ZERICO2005 merged commit c1a7e18 into master Mar 10, 2026
9 checks passed
@ZERICO2005 ZERICO2005 deleted the patch_libload branch March 10, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant