Skip to content

Added simple calc made using asm and c#529

Open
AMNTDEVIL wants to merge 1 commit intojosharsh:masterfrom
AMNTDEVIL:master
Open

Added simple calc made using asm and c#529
AMNTDEVIL wants to merge 1 commit intojosharsh:masterfrom
AMNTDEVIL:master

Conversation

@AMNTDEVIL
Copy link
Copy Markdown

This program is intended to demonstrate how low-level assembly interacts with high-level C, specifically for floating-point arithmetic. By implementing addition, subtraction, multiplication, and division in assembly while handling input and logic in C, it shows:

  • How C calls external assembly functions using extern.
  • How arguments and return values for floats are passed via SSE registers.
  • The difference between high-level logic (switch, scanf) and low-level computation.
  • A clear, hands-on example of mixing assembly and C in a small, understandable program.

Even though it’s short, it’s enough to teach beginners how low-level instructions work under the hood without overwhelming them.

@github-actions github-actions bot added the c label Apr 5, 2026
@AMNTDEVIL AMNTDEVIL closed this Apr 5, 2026
@AMNTDEVIL AMNTDEVIL reopened this Apr 5, 2026
@AMNTDEVIL
Copy link
Copy Markdown
Author

Added simple calculator intending to show how in low level add, sub, mul and div is performed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant