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

Solved lab5 #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Solved lab5 #5

wants to merge 3 commits into from

Conversation

george17c
Copy link
Owner

I solved ex1,2,3,5 from lab5.

Implemented a simple for loop to increment eax and print the strings depending on the values in ebx and ecx

Signed-off-by: Carpinisan George <[email protected]>
Changed the values from eax and ebx so that the jumps to 'bad' do not occur
Added the ret instruction after the 'good' printf

Signed-off-by: Carpinisan George <[email protected]>
After comparing eax with ebx, the program jumps to 'greata' and prints eax if the number in eax is lower than the one in ebx
If this does not occur, then the number in ebx is lower, so it jumps to 'greatb' and prints ebx

Signed-off-by: Carpinisan George <[email protected]>
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.

1 participant