Skip to content

Opt crt0#792

Draft
ZERICO2005 wants to merge 8 commits intomasterfrom
opt_crt0
Draft

Opt crt0#792
ZERICO2005 wants to merge 8 commits intomasterfrom
opt_crt0

Conversation

@ZERICO2005
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/crt/crt0.S
Comment on lines -357 to 366
ld hl, (ix + 1 + 1 * 3) ; func
push hl ; func
pea ix + 1
call _free
pop bc ; reset SP
pop hl ; func
ld hl, (ix + 1 * 3) ; func
; atexit : void (*func)(void)
; on_exit : void (*func)(int status, void *arg)
call __indcallhl
ex (sp), ix
call _free
pop bc ; reset SP
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

swapped the order of _free and __indcallhl here. Is this okay?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant