Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7629401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:49:34+00:00 2026-05-31T05:49:34+00:00

Given a matrix with 25 rows and 80 columns but with the attributes its

  • 0

Given a matrix with 25 rows and 80 columns but with the attributes its 160 columns
I have to write a program in assembly to move a four letter string “Fool” (say) to move across the matrix back and forth.

What I have done till now:

mov bx,0B800H
mov ds, bx
mov si, 1760

mov cx,80
FOOL: add si,-6
mov [si], " "
add si, 2
mov [si], "F"
add si, 2
mov [si], "O"
add si, 2
mov [si], "O"
add si,2
mov [si],"L"
loop FOOL

mov cx, 80
FOOOL: add si,-6

mov [si], "F"
add si, -2
mov [si], "O"
add si, 2
mov [si], "O"
add si,2
mov [si],"L"
add si,2 
mov [si], " "
loop FOOOL

mov ah,9
int 21H

But with this code, when its reversed, the last letter comes before the first. I am a newbie in assembly, I have tried 8085 before but this is my first attempt to 8086.

I would be grateful if somebody help me to fix this problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:49:35+00:00Added an answer on May 31, 2026 at 5:49 am

    This works:

    ; compile with nasm:
    ; nasm.exe fool.asm -f bin -o fool.com
    bits 16
    org 100h
    
    mov bx,0B800H
    mov ds, bx
    mov si, 80*11*2 ; 1760
    
    mov cx, 80+1-5
    FOOL:
    mov [si], byte " "
    add si, 2
    mov [si], byte "F"
    add si, 2
    mov [si], byte "O"
    add si, 2
    mov [si], byte "O"
    add si, 2
    mov [si], byte "L"
    sub si, 3*2
    call delay
    loop FOOL
    
    sub si, 1*2
    
    mov cx, 80+1-5
    FOOOL:
    mov [si], byte "F"
    add si, 2
    mov [si], byte "O"
    add si, 2
    mov [si], byte "O"
    add si, 2
    mov [si], byte "L"
    add si, 2 
    mov [si], byte " "
    sub si, 5*2
    call delay
    loop FOOOL
    
    mov ax, 4c00h
    int 21h
    
    delay:
    pusha
    push ds
    
    mov ax, 0
    mov ds, ax
    mov bx, [46ch]
    
    d0:
    mov ax, [46ch]
    cmp ax, bx
    je d0 ; wait for another timer tick (once in ~55 ms)
    
    pop ds
    popa
    ret
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Numpy, ix_() is used to grab rows and columns of a matrix, but
If I have a matrix given as a list of rows [[1,2,3],[4,5,6]], I want
I think Mathematica is biased towards rows not columns. Given a matrix, to insert
Given graph, how could i represent it using adj matrix?. I have read lots
Given: square matrix, and list which represents the index of rows to be removed,
this is a google interview question : Given a N*N Matrix. All rows are
I have a very large matrix(10x55678) in numpy matrix format. the rows of this
given a matrix of distances between points is there an algorithm for determining a
Given a NxN matrix with 0s and 1s. Set every row that contains a
Given an n-dimensional matrix of values: what is the most efficient way of retrieving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.