![]() |
|
|
| 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 |
|
| There is no answer at this time. |
|
| Subject:
Re: Screen Position in Linux Assembler
From: frde-ga on 15 Feb 2005 07:32 PST |
Bookmark |
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 Home - Answers FAQ - Terms of Service - Privacy Policy |