PDA

View Full Version : segments



stupid_mutt
10-02-2001, 12:44 PM
Lets say I want to point to text video memory, segment 0B800 I think. How would I access that segment with pointers. I mean like this:

mov bx, 0B800H
mov es, bx

mov [es:anything], SomeValue

but I want to do this in C, Correct me if im wrong but im assuming that whenever I use pointers in C it just points to [ds:ValuePointedTo] so I guess my question is how do I change the segment it points to. No asm please.

thanks

ober
10-02-2001, 01:28 PM
umm... wrong board?