link to examples from readme

Do another cleanup round while I'm at it.
This commit is contained in:
Ciro Santilli
2018-07-17 09:46:13 +01:00
parent 5300c5520a
commit e0a2854087
16 changed files with 263 additions and 181 deletions

View File

@@ -17,14 +17,13 @@ BEGIN
PRINT_BYTES $output, <%ax>
hlt
/*
This was copy pasted from:
http://wiki.osdev.org/Detecting_Memory_%28x86%29#Getting_an_E820_Memory_Map
use the INT 0x15, eax= 0xE820 BIOS function to get a memory map
inputs: es:di -> destination buffer for 24 byte entries
outputs: bp = entry count, trashes all registers except esi
*/
/* This was copy pasted from:
* http://wiki.osdev.org/Detecting_Memory_%28x86%29#Getting_an_E820_Memory_Map
*
* use the INT 0x15, eax= 0xE820 BIOS function to get a memory map
* inputs: es:di -> destination buffer for 24 byte entries
* outputs: bp = entry count, trashes all registers except esi
*/
do_e820:
xorl %ebx,%ebx # ebx must be 0 to start
xorw %bp,%bp # keep an entry count in bp