Hi,
I can print A - Z fine using the following :
What I'd like to do now is print 1 - 100 in the following orderCode:.model small .stack 100h .data .code mov ah, 02h ; DOS function call 2, character output mov dl, 41h ; the character 041h (i.e.'A') mov cx, 26 ; start the counter at 26 in cx again: int 21h ; print character inc dl ; the next character into dl add dl,1 ; loop again ; subtract 1 from cx, if not zero jump back to again finish: mov ax, 4C00h ; Terminate program int 21h ; correctly end
1
2
3
4
5
6
etc etc ...
Any help would be very much appreciated.
thanks in advance




Reply With Quote