Skip to content

Handwritten asm build prep, add handwritten asm for the code segment #1807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Thar0
Copy link
Contributor

@Thar0 Thar0 commented Apr 18, 2025

No description provided.

…tack.s, add handwritten asm for the code segment
Copy link
Collaborator

@hensldm hensldm left a comment

Choose a reason for hiding this comment

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

Couple thoughts.
Also looks like this breaks the partial disassembly since makerom/ipl3 and audio/lib/stack no longer have actual source files.


.text

/**
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can probably delete the duplicate comment in kanread.h now.

.text
.align 5

/* Copy 0x20 bytes at a1 to a0, with word alignment */
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a function declaration comment as well (like you did for the other 2), even if it is rather simple?

Comment on lines +648 to +649
$(BUILD_DIR)/src/makerom/ipl3.o: $(EXTRACTED_DIR)/incbin/ipl3
$(OBJCOPY) -I binary -O elf32-big --rename-section .data=.text $< $@
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the advantage of using objcopy over incbin assembly files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants