🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5243

Hercules Graphics Card Plus/MSC 6.0 -- Programming Problem

#5243
From: Charles Blair
Date: Fri, 15 Mar 1991 20:25
30 lines
1762 bytes
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
Technical Details
Message-ID: <CHAS.91Mar15142516@stax.uchicago.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!uc!shamash!midway!midway!chas

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!cs.umn.edu!uc!shamash!midway!midway!chas
From: chas@stax.uchicago.edu (Charles Blair)
Newsgroups: comp.os.msdos.programmer
Subject: Hercules Graphics Card Plus/MSC 6.0 -- Programming Problem
Message-ID: <CHAS.91Mar15142516@stax.uchicago.edu>
Date: 15 Mar 91 20:25:16 GMT
Sender: news@midway.uchicago.edu (News Administrator)
Distribution: comp.sys.ibm.pc.programmer,comp.sys.ibm.pc.misc
Organization: The University of Chicago
Lines: 30