Could someone give me a little help? It must be done in TASM 1.4, dividing 2 numbers like 14:2== 7. I tried for a few hours with tutorials from youtube but them all dont work. Some are for microsoft visual studio, which I can’t use cause i must make it in the notepad. If anyone could help me you would save my day!
I tried coding the program but it tells me "Warning: no stack" and when i exe it, nothing pops out. I have few to almost none knowledge in assembly though.
The code I have tried is:
DATA SEGMENT
A DB 9
B DB 6
C DB ?
D DB ?
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AX,0
MOV AL,A
MOV BL,B
DIV BL
MOV C,AL
MOV D,AH
MOV AH,4CH
INT 21H
CODE ENDS
END START
2
Answers
I did find an answer to the problem. I'll leave it here if anybody needs it, the program divides 2 numbers (2 digits numbers)
The reason it seems to not work is because your program doesn’t contain any instructions to display output. You can tell the CPU to do math all day long, but if you never actually show it to the screen, you won’t see anything. If you’re getting started and want to see some numbers, it’s easier to show numbers as hexadecimal than in base ten.