home bbs files messages ]

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 2,502 of 4,255   
   wolfgang kern to muta...@gmail.com   
   Re: PDOS/86   
   11 Jul 21 08:57:39   
   
   From: nowhere@never.at   
      
   On 11.07.2021 08:04, muta...@gmail.com wrote:   
   ...   
   > We just need another allocate-memory call that takes a   
   > 32-bit size and a flag to say whether it needs a 0 offset   
   > (ie be on a segment boundary).   
      
   while you have your own OS (even a fictive one yet) then   
   you can use just one single GETMEM variant like I use in   
   my OS:   
      
   getmem:   
      
   called by RM16 or PM32 entry points or INT7F for both   
      
   input:AL=mode 0=seg:offset  1=32bit flat   
          ECX= requested size in bytes   
      
   returns:   
          Carry+Z size not available, Cy+NZ no more handles   
          No Carry: means no error, then   
          BX=handle mode0 EDI=flat start   
                    mode1 ES:DI = start   
      
   and yes, the flat mode works for RM16(unreal) as well.   
   __   
   wolfgang   
      
   --- 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