Click here to Skip to main content
15,887,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to add two number, because of the adding result is in ASCII, I added 'AAA' to correct the result, but i can't print the result which is store in AL on screen because I need Interrupt 21-service 9 to print. Then I copy AX to DX, but it doesn't work.. What's wrong?

ASM
ORG 100h MOV AL,39h
MOV BL,35h
ADD AL,BL
AAA
MOV DX,AX
MOV AH,9
INT 21h
RET


Thanks,

-Rudy
Posted

1 solution

You do not have a string reference in DX; you should be using service 02h as described at http://spike.scu.edu.au/~barry/interrupts.html#ah02[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900