Skip to content
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

AEON: Add bt.lwst instruction #1321

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

throwaway96
Copy link
Contributor

The encoding for bt.lwst is almost the same as that of bt.swst except that it has the LSB set. This means the value for the immediate starts at bit 1, is 4 bits long, and is shifted left by 2 bits to calculate the offset. These instructions seem to be intended to provide more efficient stack access, using only 16 bits rather than the 24 bits of bn.sw/bn.lwz.

The bt.lwst and bt.swst mnemonics are both entirely made up. I would love to know what the official mnemonics are or if these are actually just special cases of other load/store word instructions.

The bt.lwst instruction uses almost the same encoding as bt.swst, except
it has the LSB set. This means the immediate actually starts at bit 1,
is 4 bits long, and is shifted left by 2 bits to calculate the offset.

Note that both the bt.lwst and bt.swst mnemonics are guesses not based
on any official documentation.
@uxmal uxmal merged commit db92f93 into uxmal:master Jan 26, 2024
7 of 8 checks passed
@uxmal
Copy link
Owner

uxmal commented Jan 26, 2024

Until we know for sure what the mnemonic should be, bt.lwst is perfectly adequate. Thanks for the contribution.

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

Successfully merging this pull request may close these issues.

2 participants