This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

address space overflow with getchar

I just added a getchar to a program compiling as an Xsmall memory model with Large Code size.

As soon as I add the getchar, I get an address space overflow in the BIT SPACE. I am not sure what this means and how to approach it's solution.

Can someone shed light on this?

Parents
  • It seems my answer didn't get posted...here it is again

    Only a single BIT of the BIT space is used by getchar. I don't understand why an overflow is being generated.

    I have gotten around the problem by using _geykey() but will have to write my own gets() (since it uses getcgar()) unless I can solve this.

    Does someone have the source for the Keil getchar()?

Reply
  • It seems my answer didn't get posted...here it is again

    Only a single BIT of the BIT space is used by getchar. I don't understand why an overflow is being generated.

    I have gotten around the problem by using _geykey() but will have to write my own gets() (since it uses getcgar()) unless I can solve this.

    Does someone have the source for the Keil getchar()?

Children
No data