-
Notifications
You must be signed in to change notification settings - Fork 53
Lab 07 x86 64 version #131
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
Conversation
9f11354 to
54f6d07
Compare
|
Aside from the lab 7 file, I also modified a file from lab 9 to fix a super linter error, but another one showed up in a different lab. I presume those issues have been fixed on other branches. |
teodutu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nice work. Apply my feedback then we can merge this
54f6d07 to
65f44f2
Compare
| ; input values (eax, edx): the 2 numbers to compute the gcd for | ||
| mov eax, 49 | ||
| mov edx, 28 | ||
| ; input values (rax, rdx): the 2 numbers to compute the gcd for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ; input values (rax, rdx): the 2 numbers to compute the gcd for | |
| push rbp | |
| mov rbp, rsp | |
| ; input values (rax, rdx): the 2 numbers to compute the gcd for |
Align the stack
| push rbp | ||
| mov rbp, rsp | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add these to the support code as well.
| push rbp | ||
| mov rbp, rsp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto: the support code suffers from the same seg fault.
65f44f2 to
d5d1551
Compare
d5d1551 to
edcada3
Compare
Reading material was modified to include x86_64 registers and instructions. Solutions, support code and tests were modified to work on x86_64 assembly and use the extended ISA. Signed-off-by: PetruCristian <[email protected]>
edcada3 to
5a3088e
Compare
teodutu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were but a few finishing touches to be made and it was faster for me to do them myself. Nice work @PetruCristian!
labs/lab-07/tasks/stack-addressing/solution/stack-addressing.asm
Outdated
Show resolved
Hide resolved
|
The super-linter error is unrelated |
Prerequisite Checklist
Description of changes
Reading material for lab 7 was modified to include x96_64 registers and instructions. Solutions, support code and tests were modified to work on x86_64 assembly and use the extended ISA.