Google Answers Logo
View Question
 
Q: Screen Position in Linux Assembler ( No Answer,   1 Comment )
Question  
Subject: Screen Position in Linux Assembler
Category: Computers > Programming
Asked by: azdotnet-ga
List Price: $5.00
Posted: 15 Feb 2005 06:49 PST
Expires: 17 Mar 2005 06:49 PST
Question ID: 474881
I'm looking for the way to get the initial value of a screen terminal
in Linux Assembly (AT&T syntax/GAS).

The version of the program that works OK in MSDOS is the following:

_dir_pantalla PROC FAR
       push es
       xor ax,ax
       mov es,ax
       mov dl,es:[449H]
       cmp dl,7
       je b0
       cmp dl,2
       je b8
       cmp dl,3
       je b8
error: mov ax,-1
       mov dx,-1
       jmp fin
b0:    mov dx,0B000h
       jmp fin
b8:    mov dx,0B800H
fin:   pop es
       ret
_dir_pantalla ENDP

Then I can use the screen like a matrix 80 x 25 with the first element
being the initial screen address and I can write a character &
attribute to each position of the matrix (this is,each position of the
screen).
I need the same code for Linux using GAS syntax.

Thanks
Answer  
There is no answer at this time.

Comments  
Subject: Re: Screen Position in Linux Assembler
From: frde-ga on 15 Feb 2005 07:32 PST
 
Bookmark

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy