flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > "find_free_mem" questions (kernel side) |
Author |
|
Ville 30 Apr 2004, 08:31
Find_free_mem is only for application management. Menuet uses find_free_mem for searching free memory for a new process. You can load your files directly to a free memory position up to 16mb, see memmap.inc.
|
|||
30 Apr 2004, 08:31 |
|
xemean 30 Apr 2004, 09:08
Thank you Do you mean i just code as following without set any "flag" to tells system that "this block of memory is useing"? mov eax,cnsbfname ; eax point to 11 filename mov ebx,0 ; first block wanted read mov ecx,-1 ; number of blocks to read mov edx,0x1000000+0xXXXXXXXX ;<- directly set edx ? mov esi,12 ; length of filename call fileread ; read file |
|||
30 Apr 2004, 09:08 |
|
Ville 30 Apr 2004, 10:53
xemean wrote:
You can use the memory from 0 to 16 MB. You don't have to set any flags, since all the used areas are listed in memmap.inc. |
|||
30 Apr 2004, 10:53 |
|
xemean 30 Apr 2004, 11:23
Quote:
Thank you very much,I found a block of free memory for bitmap_font: ; 780000 -> 7fffff free It is enough. Greate,I'll post the Simplified Chinese Menuet version later! Regards, E-mean X. |
|||
30 Apr 2004, 11:23 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.