You are browsing as a guest. Sign up (or log in) to start making projects!

Calculator in Assembly

  • 5 Devlogs
  • 5 Total hours

Basic calculator made in x86 assembly

Ship #1 ✨ Blessed

Basic Calc in x86_64 Assembly

wanted to learn assembly so wrote this, its not a full fledged calc but it does support somethings

supports + - * /
only linux
_
checks for invalid op, invalid digits, empty input, negative output, divide by zero, u64 overflow


check readme and build from source

  • 5 devlogs
  • 5h
  • 1.73x multiplier
  • 11 Stardust
Try project → See source code →
Open comments for this post

1h 55m 44s logged

Multiple shi

did a lot of lil things, just wanted to complete this and ship to get 3 stardust so i can get the buds
_

things i did:

  1. added negative number guard
  2. added invalid number check
  3. added operation check
  4. added u64 overflow check
0
0
15
Open comments for this post

1h 26m 44s logged

Addition

yeah it can do addition now, but 1h 24m to make that?
hell NO.

most of the time went on a stupid Integer to ASCII conversion function :cwy: it was so hard to implement but i did it at the end :thumbs-up:


the calculator lacks hella checks tho, you can do “hi + hello” and get 620280 (yes literally idk how)

0
0
16
Open comments for this post

55m 25s logged

made atoi

ASCII to integer conversion
i am an idiot so i accidenttely said “itoa” in git commit T_T (integer to ASCII)

yeah not much to show right now, just took almost an hour debugging and trying to fix the the loop :cwy:


screenshot shows i entered those values which is taken as ASCII and the output from reading the num1 and num2 bytes it prints those as numbers :thumbs-up:

0
0
9

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…