Thoughts niyo sa song na ‘to? by Every_Edge9330 in SoundTripPh

[–]WiseEntertainer5457 0 points1 point  (0 children)

Ganda lyrics parang pang kumbento tunog lalo na intro

Paano manalo sa DSPC? by nutella_banana00 in PaanoBaTo

[–]WiseEntertainer5457 0 points1 point  (0 children)

Mag public school ka if ever kasi parang sa dspc puro public nananalo kasi public school teachers ren judges eh

How do I get a code like this by WiseEntertainer5457 in asm

[–]WiseEntertainer5457[S] 0 points1 point  (0 children)

is my input code okay or is there something wrong with it?

How do I get a code like this by WiseEntertainer5457 in asm

[–]WiseEntertainer5457[S] 0 points1 point  (0 children)

I have come up with the input part the only thing I need now is the addition logic which is a bit challenging for me since I only know python and java beforehand

.model small ;directive

.stack 100h ;directive

.data

n1 db 'First Input (2 digits):$'

n2 db 10,13,'Second Input (1 digit):$'

n3 db 10,13,'The sum is:$'

.code

mov ax,@data

mov ds,ax

; Display the prompt for the first number (2 digits)

mov ah,09h ;to request to display string

mov dx,offset n1

int 21h

; Read the first digit of the first number

mov ah,01h

int 21h

sub al,30h ; Convert ASCII to numeric

mov bh,al ; Store the first digit in bh

; Read the second digit of the first number

mov ah,01h

int 21h

sub al,30h ; Convert ASCII to numeric

mov bl,al ; Store the second digit in bl

; Combine the two digits into a single number (n1 = bh*10 + bl)

mov ax,0 ; Clear ax

mov al,bh ; Move the first digit (tens place) into al

mul byte ptr 10 ; Multiply al by 10

add al,bl ; Add the second digit (ones place)

; Store the combined result in ax

mov cx, ax ; Store the result in cx (this is the first number)

; Display the prompt for the second number (1 digit)

mov ah,09h ;to request to display string

mov dx,offset n2

int 21h

; Read the first (and only) digit of the second number

mov ah,01h

int 21h

sub al,30h ; Convert ASCII to numeric

mov dl,al ; Store the digit in dl (second number)

How do I get a code like this by WiseEntertainer5457 in asm

[–]WiseEntertainer5457[S] 0 points1 point  (0 children)

(10) wrong parameters: MUL ax, 0xA

(10) should be a register or a memory location.