Page 1 of 1

Modify the demo program to move the string from leftmost side to the rightmost side of the screen 5 times. how to repeat

Posted: Sat Jul 09, 2022 11:48 am
by answerhappygod
Modify the demo program to move the string from leftmostside to the rightmost side of the screen 5 times.
how to repeat the string 5 times by modifying thedemo program below?
Modify The Demo Program To Move The String From Leftmost Side To The Rightmost Side Of The Screen 5 Times How To Repeat 1
Modify The Demo Program To Move The String From Leftmost Side To The Rightmost Side Of The Screen 5 Times How To Repeat 1 (5.53 KiB) Viewed 40 times
.model small.stack.data strg db 'Mapua$' row db 12 col db 0.codemain proc mov ax,@data mov ds,ax
mov ah,6 mov al,0 mov bh,7 mov ch,0 mov cl,0 mov dh,24 mov dl,79 int 10h
mov cx,76
again: push cx mov ah,2 mov bh,0 mov dh,row mov dl,col int 10h
mov ah,9 mov dx,offset strg int 21h
inc col
mov cx,10y: push cx mov cx,0ffffhx: loop x pop cx loop y
pop cx loop again
mov ah,4ch int 21hmain endpend main
BOX DOSBox 0.74-3, Cpu speed: 3000 cycles, Frameskip 0, Program: DOSBOX . I X MMMMMapua