Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,495 of 4,675    |
|    Paul Edwards to R.Wieser    |
|    Re: error for small data model    |
|    16 Nov 22 05:33:51    |
      From: mutazilah@nospicedham.gmail.com              On Wednesday, November 16, 2022 at 5:49:12 PM UTC+8, R.Wieser wrote:       > Paul,       > > There is no choice in that case - tiny is the only one.       > As you have not mentioned anything about your requirements there is no way       > for me to agree or disagree with the above I'm afraid ...              I was trying to implement my C library (PDPCLIB) for MSDOS       when I encountered this issue.              > > So long as you use far data pointers, ie compact, large and       > > huge, it should all be fine.       > And create the replacement or wrapper functions for INT 21h (and other) "one       > segment only" calls.       >       > As I said, its not rocket science. But you might find programming Assembly       > in those models becoming tiresome rather quickly.              I'm not trying to program in assembly, except for the minimal       wrappers.              I'm wondering how a C "hello world" could have worked in small       memory model C compiler (any vendor) when the "hello world"       string could come from either a buffer on the stack or a data       variable.              It somehow magically worked.              I didn't need to stuff around in my hello world application program -       someone else magically dealt with that.              Now I'm trying to understand magic.              Thanks. Paul.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca