Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.development    |    Operating system development chatter    |    4,255 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,620 of 4,255    |
|    mutazilah@gmail.com to muta...@gmail.com    |
|    Re: 32 on 64    |
|    18 Mar 23 06:30:12    |
      From: muta...@gmail.com              On Saturday, March 18, 2023 at 9:11:02 PM UTC+8, muta...@gmail.com wrote:       > I thought that it was not possible to run 80386 software on an x64 in lm64       because they took away push eax etc so you only have push rax        >        > But I just realized that you can manipulate the stack manually. Ie mov eax       to offset 4 from esp etc.        >        > And sub esp, 4        >        > I don't mind writing a new compiler and I don't mind recompiling everything.        >        > So        >        > Is it possible to write 80386 code that runs on lm64 without issue?        >        > Ie are sufficient instructions available for a general purpose application?        >        > I would be running under 64 bit EFI        >        > Using only memory below 4 GB        >        > And without paging.        >        > The 32 bit code would be in a.out format and I would load it myself.        >        > Thanks              I just realized.              Even if it works, I'll hit the same problem I hit on the mainframe.              Negative indexes. A fundamental part of life.              For that to work I need to remap the 4 to 8 GB region onto 0 to 4              For that I presumably need to use paging.              For that I presumably need to exit boot services              Which I don't want to do              So I'm stuck again?              --- 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