flat assembler
Message board for the users of flat assembler.

Index > OS Construction > int 15, memory map

Author
Thread Post new topic Reply to topic
a115433



Joined: 05 Mar 2010
Posts: 144
a115433 13 Mar 2010, 14:46
i need some help in getting memory map.
use16
org 0x7C00
mov ax,0
mov ss,ax
mov es,ax
mov ds,ax



mov eax,0x0000E820
mov edx,0x534D4150
mov ebx,0x00000000
mov ecx,300
mov edi,buff
int 15



jc $

carry flag is clear = success, but registers are not changed Sad
Post 13 Mar 2010, 14:46
View user's profile Send private message Reply with quote
smiddy



Joined: 31 Oct 2004
Posts: 557
smiddy 13 Mar 2010, 14:56
I put this out there a while ago, this should help. I intend on updating the post since I have updating the code to work for 64 bits of memory.

http://board.flatassembler.net/topic.php?t=6217
Post 13 Mar 2010, 14:56
View user's profile Send private message Reply with quote
zhak



Joined: 12 Apr 2005
Posts: 501
Location: Belarus
zhak 13 Mar 2010, 15:47
check this article: "http://wiki.osdev.org/Memory_Map_(x86)"
Post 13 Mar 2010, 15:47
View user's profile Send private message Reply with quote
shutdownall



Joined: 02 Apr 2010
Posts: 517
Location: Munich
shutdownall 02 Apr 2010, 22:12
Maybe its too late for an answer but I think you want to call int 15h not int 15 (=int 0fh)
or in your language above int 0x15
Wink
Post 02 Apr 2010, 22:12
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.