Thread: segments

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    140

    segments

    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

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    umm... wrong board?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Shared memory segments
    By mae3 in forum C Programming
    Replies: 1
    Last Post: 11-20-2008, 09:21 AM
  2. HELP: split up source file into segments automatically....
    By andrewwan1980 in forum Tech Board
    Replies: 5
    Last Post: 10-15-2007, 05:13 AM
  3. Number of Shared Memory Segments
    By dbt3481 in forum Linux Programming
    Replies: 1
    Last Post: 10-14-2004, 02:43 PM
  4. are segments 16 bytes?
    By stupid_mutt in forum C Programming
    Replies: 1
    Last Post: 10-17-2001, 10:41 PM
  5. if segments are 16 bytes long then Im must be really confused.
    By stupid_mutt in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-16-2001, 08:01 PM