; Program that subtracts three integers using only 16-bit registers
; Subtracts: val1 - val2 - val3
INCLUDE Irvine32.inc
.data
val1 WORD 10 ; using WORD (16-bit) instead of DB
val2 WORD 20
val3 WORD 30
answer WORD ? ; we'll store the final result here
.code
main PROC
mov ax, val1 ; AX = 10
sub ax, val2 ; AX = 10 - 20 = -10
sub ax, val3 ; AX = -10 - 30 = -40
mov answer, ax ; optional: store result in memory
call DumpRegs ; shows EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP + flags
exit
main ENDP
END main
Just finished writing a code to subtract two numbers from one number
Seems easy to write ✍️ 🤧
😢4🔥1
Forwarded from The Software Guy
Listen up comrades , we got 3 major currencies
1 Money
2 Time
3 Knowledge
When u need one use the other 2 to get it . 🫡 it works try it 😁
1 Money
2 Time
3 Knowledge
When u need one use the other 2 to get it . 🫡 it works try it 😁
🔥1
for-coder
my teacher asked me the output for the line 🤧 ADD BL , AL
Assembly btw mtsmm
Forwarded from Dagmawi Babi
Submit all the wonderful projects, designs, videos, apps, games, sites, blogs you've built and made throughout February and March.
Submit here:
• stark.et/events/join/ev_a8f1983b1cec1f8decb19f1a71cc2217
Can't wait :)
#CommunityShowcase
@Dagmawi_Babi
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from jerbear
StitchLog.
so i made this app for my dad after i saw him struggle trying to find a piece of paper that had a measurement written on it. i thought to myself 'hmmm, what if there was a way he could just search for it'. that's how stitchLog came to life, now he can store his customers' information, measurements and everything.
•••log customers' information(name and number)
•••log customers' measurements per garment including due date, price, advance and stuff
•••verify payments recieved in telebirr and CBE (can scan, send ss or enter ID)
•••log merkato shopping list in a checklist form
been a few days and he has already started logging his things🎀
so i made this app for my dad after i saw him struggle trying to find a piece of paper that had a measurement written on it. i thought to myself 'hmmm, what if there was a way he could just search for it'. that's how stitchLog came to life, now he can store his customers' information, measurements and everything.
•••log customers' information(name and number)
•••log customers' measurements per garment including due date, price, advance and stuff
•••verify payments recieved in telebirr and CBE (can scan, send ss or enter ID)
•••log merkato shopping list in a checklist form
been a few days and he has already started logging his things
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4
idk what im gonna be doing here to be real but just gonna post some projects 🥶🥶
🔥2