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

Add explainers for assembly instructions for easier reading #21

Open
egonelbre opened this issue Jan 26, 2024 · 0 comments
Open

Add explainers for assembly instructions for easier reading #21

egonelbre opened this issue Jan 26, 2024 · 0 comments

Comments

@egonelbre
Copy link
Member

Many instructions can be rewritten to be clearer for people, e.g.

MOV (R2), R1 ==> R1 := memory[R2]

ADDQ $1, R1 ==> R1 := R1 + 1

LEAQ 0(R1)(R2*4), R3 ==> R3 := R1 + R2 * 4

FMADDS F0, F2, F1, F2  ==> F2 := F0*F1 + F2

It doesn't need to be comprehensive, however if there was a list of substitutions then people can add new ones as the need arises.

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

No branches or pull requests

1 participant