Skip to content

size optimized libload start#706

Closed
ZERICO2005 wants to merge 1 commit intomasterfrom
opt_libload_2026feb11
Closed

size optimized libload start#706
ZERICO2005 wants to merge 1 commit intomasterfrom
opt_libload_2026feb11

Conversation

@ZERICO2005
Copy link
Contributor

Saves 14 bytes by removing the LIB_FLAGS and IX restoring code for the return to execution if there are no libs case.

ld (iy + LIB_FLAGS), a ; restore flag bits
ld ix, (ix_save) ; restore IX register
jr z, start_optional
jp (hl) ; return to execution if there are no libs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both ix and (iy + LIB_FLAGS) are unmodified here, so we do not need to restore them

@mateoconlechuga
Copy link
Contributor

No, the goal of all code is to be readable.

@ZERICO2005 ZERICO2005 deleted the opt_libload_2026feb11 branch February 11, 2026 18:20
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.

2 participants