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,625 of 4,675    |
|    Paul Edwards to Paul Edwards    |
|    Re: 32-bit on 64-bit    |
|    16 Aug 23 11:59:55    |
      From: mutazilah@nospicedham.gmail.com              On Wednesday, August 16, 2023 at 10:40:29 PM UTC+8, Paul Edwards wrote:              > There will be issues for something like printf, where I don't        > know how many parameters there are, so I will just assume        > a maximum of 4 or something like that.               I thought of a possible solution for this.              I can make it mandatory to call getmainargs, and have a       fudged argc - if argc is greater than x'80000000' then it       means that it is running under a 64-bit environment, and       argv is also fudged, and is a struct, and has a pointer to       a global variable that contains the number of parameters       to any variable-argument function.              So, when the global exists, the value gets populated.              Otherwise, it's a standard win32 environment that works       without assistance.              BFN. 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