flat assembler
Message board for the users of flat assembler.

Index > Linux > Direct print

Author
Thread Post new topic Reply to topic
a16b03



Joined: 24 Jan 2006
Posts: 43
Location: Riga, Latvia
a16b03
Is there a possibility to Print text directly to screen under linux? Can i use 0D800h address?
Post 08 Mar 2006, 22:05
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7108
Location: Slovakia
vid
you meant B800. Not without dirty tricks
Post 08 Mar 2006, 22:13
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Feryno



Joined: 23 Mar 2005
Posts: 449
Location: Czech republic, Slovak republic
Feryno
Hello, use device like /dev/vcs1 or /dev/vcs4 (number of virtual console switched by ALT+F1...ALT+F6) for read from or write to console (text only, not character attributes). You can use it without asm code by dd command
dd if=/dev/vcs1 of=con_dump.txt (note that you will get unformatted text with a lot of space chars = 20h bytes - no new line bytes 0Ah...).
If you want to access character+char_attributes (like DOS access on segment B800h) use /dev/vcsa
look for window sample (/src/bonus/window.asm) from
http://asm.sourceforge.net/asmutils/asmutils-0.18.tar.gz
for /dev/vcsa access
Post 09 Mar 2006, 06:31
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.