segments

This is a discussion on segments within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Lets say I want to point to text video memory, segment 0B800 I think. How would I access that segment ...

  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, 06:13 AM
  3. Number of Shared Memory Segments
    By dbt3481 in forum Linux Programming
    Replies: 1
    Last Post: 10-14-2004, 03:43 PM
  4. are segments 16 bytes?
    By stupid_mutt in forum C Programming
    Replies: 1
    Last Post: 10-17-2001, 11: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, 09:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21