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

fix lab1.4 #28

Merged
merged 5 commits into from
May 12, 2024
Merged

fix lab1.4 #28

merged 5 commits into from
May 12, 2024

Conversation

StathisKons
Copy link
Contributor

No description provided.

Copy link
Owner

@zisisvakras zisisvakras left a comment

Choose a reason for hiding this comment

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

  • Στη γραμμή 8 ο $a1 πρέπει να είναι 21 (το syscall θέλει το length μαζί με το \0)
  • Το πρόγραμμα σου δεν κάνει print το string που έδωσε ο χρήστης
  • Οι εντολές ulh, ush κάνουν πολύ περίπλοκη την άσκηση και δεν τις ξέρουν οι
    φοιτητές στο πρώτο λαμπ, ο σκοπός είναι απλές λύσεις για reference στους
    υπόλοιπους, μια sb είναι πιο απλή.
  • Στη γραμμή 23 έχεις δίκιο (φυσικά το σχόλιο φαντάζομαι ότι εννοεί $v0) αλλά
    είναι καλή πρακτική να σετάρεις πάντα τον $v0 γιατί κάποια syscalls επιστρέφουν
    τιμή σε αυτόν.
  • Αν μπορείς ξαναβάλε το σχόλιο που έκοψες στην αρχή και βάλε και το .data στην αρχή

@zisisvakras
Copy link
Owner

Φτιάξε λιγο το alignment των comments, επίσης ακόμα δεν κάνεις print το user input

Copy link
Owner

@zisisvakras zisisvakras left a comment

Choose a reason for hiding this comment

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

looks good

@zisisvakras zisisvakras merged commit c9c77f4 into zisisvakras:main May 12, 2024
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