flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > lds les ect... |
Author |
|
CandyMan 05 Dec 2015, 12:24
it is looking out this way:
Code: FarAddress dd ? ; dw Offset dw Segment ... lds ax,[FarAddress] OR Code: FarAddress df ? ; dd Offset dw Segment ... lds ebx,[FarAddress] OR Code: FarAddress dw Offset,Segment ... lds bx,dword [cs:FarAddress] variants are still possible: les edx,[...], lfs esi,[...], lgs di,[...], lss esp,[...] your code should look this way: Code: mov [MemoryMap+2],cs mov [MemoryMap+0],MemoryMapStart ... ... push ds lds si,[MemoryMap] mov ah,0xC7 int 15h pop ds ... mov eax,[MemoryMapStart+LocalMem1Mto16M] ... mov eax,[MemoryMapStart+SystemMem16Mto4G] MemoryMap dw ?,? virtual at 0 LengthOfTable dw ? ; excluding this word LocalMem1Mto16M dd ? ; in 1K blocks LocalMem16Mto4G dd ? ; in 1K blocks SystemMem1Mto16M dd ? ; in 1K blocks SystemMem16Mto4G dd ? ; in 1K blocks CacheableMem1Mto16M dd ? ; in 1K blocks CacheableMem16Mto4G dd ? ; in 1K blocks StartNonSystemMem1Mto16M dd ? StartNonSystemMem16Mto4G dd ? StartSegLargestBlock dw ? ; from C0000h-DFFFFh SizeLargestBlock dw ? dd ? ; reserved MemoryMapSize: ; = $ end virtual MemoryMapStart: rb MemoryMapSize _________________ smaller is better |
|||
05 Dec 2015, 12:24 |
|
Shahada 10 Dec 2015, 09:51
In code you posted you not need appeal to LDS for help: mov si,MemoryMap is good.
------------------------------------------------------------------------------------- None saw it; Neither did Aminadab appear. Ya Allah Ya Allah Ya Allah |
|||
10 Dec 2015, 09:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.