[comp.os.msdos.programmer] Hercules Graphics Card Plus/MSC 6.0 -- Programming Problem

chas@stax.uchicago.edu (Charles Blair) (03/16/91)

I've written some code that successfully puts a Hercules Graphics Card
Plus into 48K Ramfont code, then returns the board to normal text
mode. The code is written in assembly language.

When I call the code from a main proc written in assembly language, it
appears to run normally. (I'm using MASM 5.1.)

However, when I call the code from a main routine written in C (and
compiled with MSC 6.0), the code seems to run fine -- I can exit the
program normally -- but it doesn't behave as expected.

My code blanks the screen to program the 6845, then turns it back on.
When called from C, it blanks the screen all right, but won't turn it
back on. I can't believe that run-time C is trapping my OUT
instructions.

This isn't a problem with mixed-language programming. The C program
exits just fine; my computer doesn't hang. I just can't see the screen
anymore. (And when I've commented this part of the code out, the rest
of my mixed-language stuff works fine.)

What could the matter be? E-mail responses preferred; thanks.


--
Internet: chas@uchicago.edu

"This is the story of America. Everybody's doing what they think
they're supposed to do."  Jack Kerouac