This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ASCII without ANSI


Hello all.
Well, i need to find a way to change screen mode (to 80x50 text) without using
ANSI in gcc, in a way that will work under both Win32 and *nix. Is there a
way, or library to do that? I guess i can do it with asm, but the problem is,
i'm not used to gcc's style of inline-asm, but WatcomC, and i cannot find a
way to convert the following WatcomC routine i wrote to gcc, and test if it
works:

void setvgamode(char mode)
{
_asm{
  xor ah,ah
  mov al,mode
  int 10h
}
}

Also, i will directly access to 0xA0000h for writing to screen without using
ANSI, but i guess i won't have a problem with that, just a memcpy().

If anyone knows a library for this, or any way to change screen mode to
another text mode without using ANSI, please help.

Regards,
Kerem HADIMLI

Note: please set your reply's CC: 's to my email address, as i'm not in the
mailing list.
-- 
If it happens once, it's a bug.
If it happens twice, it's a feature.
If it happens more than twice, it's a design philosophy.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]