flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sinsi 21 Oct 2020, 00:59
DX is the pmode selector
AX is the real mode segment The offset should be 0 |
|||
![]() |
|
hodbogi 21 Oct 2020, 16:11
Ah that is actually making more sense now, I'm more of a 65xx / 68xx kind of person so I'm half confused about protected mode selectors and real mode segments, etc. I'm assuming it's not as simple as throwing ax into es and 0 into di and using stosb from there, right? that causes a protection fault as well. Do I have to convert it into a physical address or something somehow and go from there? By the nature of what I read about how stosb works, it doesn't seem that way. I'd hate to ask but I would definitely appreciate an example that I can study of how this would work in particular with function 0x100 like used here (a couple examples I looked at online to accomplish certain tasks used it), so that I can learn a little more about that aspect.
|
|||
![]() |
|
sinsi 21 Oct 2020, 19:43
When you are using that memory, you are in protected mode and would use DX:0 to access it.
Usually you would allocate DOS memory to use with a real mode DOS or BIOS call, in that case you pass AX:0 as the memory address. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.