Skip to content

Conversation

@PetruCristian
Copy link

Prerequisite Checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Updated relevant documentation (if needed).

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.

@PetruCristian PetruCristian linked an issue Jul 14, 2025 that may be closed by this pull request
@PetruCristian PetruCristian changed the base branch from main to x86_64 July 14, 2025 00:23
@PetruCristian PetruCristian requested a review from teodutu July 14, 2025 00:24
@PetruCristian PetruCristian force-pushed the lab-07-x86_64-version branch from 9f11354 to 54f6d07 Compare July 14, 2025 00:39
@PetruCristian
Copy link
Author

PetruCristian commented Jul 14, 2025

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.

Copy link

@teodutu teodutu left a 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

@PetruCristian PetruCristian force-pushed the lab-07-x86_64-version branch from 54f6d07 to 65f44f2 Compare August 5, 2025 19:23
; 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
Copy link

Choose a reason for hiding this comment

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

Suggested change
; 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

Comment on lines +8 to +10
push rbp
mov rbp, rsp

Copy link

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.

Comment on lines +15 to +16
push rbp
mov rbp, rsp
Copy link

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.

@PetruCristian PetruCristian force-pushed the lab-07-x86_64-version branch from 65f44f2 to d5d1551 Compare August 13, 2025 15:23
@teodutu teodutu force-pushed the lab-07-x86_64-version branch from d5d1551 to edcada3 Compare August 22, 2025 13:21
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]>
@teodutu teodutu force-pushed the lab-07-x86_64-version branch from edcada3 to 5a3088e Compare August 22, 2025 13:44
Copy link

@teodutu teodutu left a 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!

@teodutu
Copy link

teodutu commented Aug 22, 2025

The super-linter error is unrelated

@teodutu teodutu merged commit bdbd92b into cs-pub-ro:x86_64 Aug 22, 2025
2 of 3 checks passed
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.

labs/lab-07: Add x86_64 version

2 participants