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?
.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
Modify the demo program to move the string from leftmost side to the rightmost side of the screen 5 times. how to repeat
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am