Modify the given code to move the string from leftmost side to the rightmost side of the screen (no trails). Given Code: .model small .stack .data     strg db 'Mapua$'     row  db    12     col  db    0 .code main    proc     mov ax,@data     mov ds,ax     mov ah,6     mov al,0     mov bh,7     mov ch,0

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter3: Computers And Mobile Devices: Evaluating Options For Home And Work
Section: Chapter Questions
Problem 3MC
icon
Related questions
Question
100%

Modify the given code to move the string from leftmost side to the rightmost side of the screen (no trails).

Given Code:

.model small
.stack
.data

    strg db 'Mapua$'
    row  db    12
    col  db    0
.code
main    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

    mov cx,40
again:push cx
    mov ah,2
    mov bh,0
    mov dh,row    ;row
    mov dl,col    ;col
    int 10h

    mov ah,9
    mov dx,offset strg
    int 21h

    inc col

    mov cx,10
    push cx
    mov cx,0ffffh
x:    loop x
    pop cx
    loop y

    pop cx
    loop again

    mov ah,4ch
    int 21h
main    endp
end    main

DOS
BOX DOSBox 0.74-3, Cpu speed: 3000 cycles, Fram...
Mapua
1
X
Transcribed Image Text:DOS BOX DOSBox 0.74-3, Cpu speed: 3000 cycles, Fram... Mapua 1 X
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning