![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 4
![]() |
hi all,
i'm having trouble printing numbers to the screen: .model small .stack .data .code start: mov ah,02h mov dl, 48 int 21h mov ax,4c00h mov int 21h end start thanks in advance, Kind regards
__________________
http://www.white-scorpion.nl |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Nov 2004
Posts: 250
Rep Power: 4
![]() |
In assembly language you can only print characters. What you need to do is convert the binary representation of 48 to it's character representation of '4' '8'. A web search would help you more than a quick solution, so I'll direct you to www.google.com.
![]() |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 4
![]() |
thanks for your reply, that's all i needed to know... i just hoped there was another way of printing them, but appearantly there isn't
![]()
__________________
http://www.white-scorpion.nl |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|