Skip to content

one line changed in q7 into scanf part#4

Open
vruddhi1110 wants to merge 2 commits into
s26-cso:mainfrom
vruddhi1110:main
Open

one line changed in q7 into scanf part#4
vruddhi1110 wants to merge 2 commits into
s26-cso:mainfrom
vruddhi1110:main

Conversation

@vruddhi1110
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings May 8, 2026 12:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the scanf call setup in the RISC-V assembly for q7 by passing the correct arguments (format string + destination address), enabling proper input reading into the stack slot used for N.

Changes:

  • Update scanf argument registers to use a0 = input_fmt and a1 = sp+8 instead of incorrectly passing only sp+8.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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