flat assembler
Message board for the users of flat assembler.
Index
> MenuetOS > Use of ExtraSegment in MenuetOS |
Author |
|
spideros1 02 Oct 2004, 08:52
Why do you need to change ES. What value do you load there ?
Segments in protected mode have different meaning and it's useless to change segment registers in user mode. Do you want to write to another process memory ? |
|||
02 Oct 2004, 08:52 |
|
Tolle 02 Oct 2004, 10:27
You don't need to set ES just to use SCASW, setting EDI is enough...
|
|||
02 Oct 2004, 10:27 |
|
wanderer 02 Oct 2004, 22:41
Tolle wrote: You don't need to set ES just to use SCASW, setting EDI is enough... Segment registers format in protected mode differs from one in real mode. As I understood from previous posts menuet os uses flat memory model and initializes all (or almost all) segment registers to use segments with base 0 and limit 0xffffffff. That's why you have to use only offsets in you program and there's no reason to touch segment registers. _________________ Best regards, Antoch Victor |
|||
02 Oct 2004, 22:41 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.