Page 1 of 1
4mb paging help
Posted: Sat Aug 27, 2011 10:13 am
by CandyMan
Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
Re: 4mb paging help
Posted: Sat Aug 27, 2011 10:45 am
by LegendDairy
CandyMan wrote:Whether somebody could write me in the assembler how to map entire 4GB using of the memory 4MB of pages
Serious?...
Re: 4mb paging help
Posted: Sat Aug 27, 2011 10:50 am
by CandyMan
Yes
Re: 4mb paging help
Posted: Sat Aug 27, 2011 10:59 am
by Brendan
Hi,
Code: Select all
mov eax,0x00000000 | FLAGS
mov edi,pageDirectoryAddress
cld
.l1:
stosd
add eax,4*1024*1024
jnc .l1
Ok?
Cheers,
Brendan
Re: 4mb paging help
Posted: Sat Aug 27, 2011 11:07 am
by CandyMan
Thanks all, problem solved!
Re: 4mb paging help
Posted: Sat Aug 27, 2011 4:03 pm
by Combuster
I could.
Seriously, considering the circumstances Brendan is being exceptionally nice by posting code where you don't deserve it. Yet I can't find a single trace of you taking advantage of it. Worse, your entire ASM file reeks of a beginner developer. An OS is not something you just do in an afternoon to have something to show off on your first day of school.
In other words: read the rules. We do not do your homework.