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,159 of 4,255    |
|    mutazilah@gmail.com to s_dubrovich@yahoo.com    |
|    Re: small memory model    |
|    17 Apr 22 15:17:37    |
      From: muta...@gmail.com              On Monday, April 18, 2022 at 5:37:23 AM UTC+10, s_dubrovich@yahoo.com wrote:              > > Is there any reason why small memory model can't       > > be used to make a .com file?              > No there isn't.              Thanks for confirming that.              > However CMD.EXE starting around Win8 won't load it if it is > 64k.       > Prior to that CMD.EXE would, as would all the pcDOS's as the Loader would       load the entire file size.       > I experimented with doing such circa Win 97.              Thanks for the info. In my case I want the .com file       to be a boot loader. I wish to use SubC which produces       small memory model and was wondering what restriction       that caused compared with tiny.              Thanks for showing the code, but I think there is an issue       with it.              > %IF pcDos       > add bx,10h ;; adj for 0100h orging       > %ENDIF       > mov DS,bx       > add bx,datamin ;; + segm_sz data = ESEG       > %IF pcDos       > add bx,10h       > %ENDIF              I don't think you want this add of 10h. You have       already done that once. You don't want to do it       again.              > mov ES,bx       > add bx,extramin ;; + segm_sz extra = SSEG       > %IF pcDos       > add bx,10h       > %ENDIF              Ditto.              > mov SS,bx       > mov sp,stack_sp ;;offset in SSEG              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