Thread: if segments are 16 bytes long then Im must be really confused.

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

    Question if segments are 16 bytes long then Im must be really confused.

    I read in my assembly book that a segment is 16 bytes long and also that to display text to the screen you can put stuff in [0B800H : offset] I did this and its happy and works. But just now I was at osdev.org and read that to put stuff on the screen you just have to put stuff in [es : 0B800H] with es address as 0. Now thats what makes no sense at all, when you access memory in asm its like this [segment : offset] right? If Im correct about a segment being 16 bytes and correct about how accessing memory works then you can probably see why Im confused. It might be that my asm book is for dos and osdev.org focuses on 32 bit **** so that its a different address entirely but still doesnt make much sense. Or maybey Im just not understanding segments properly. thanks for any help
    Last edited by stupid_mutt; 10-16-2001 at 07:44 PM.

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

    Unhappy Im a ****ing idiot. sorry

    Sorry I realized why I was confused. I didnt notice that at osdev.org the number they put was 0B8000H that makes sense now. You can ignore this post.
    Acos is good

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting using pointer to pointer not working
    By eager2no in forum C Programming
    Replies: 17
    Last Post: 09-21-2008, 12:52 AM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Reverse Engineering on a Download file
    By c_geek in forum C Programming
    Replies: 1
    Last Post: 03-22-2008, 03:15 PM
  4. How to display 23 bytes long double answer in C?
    By CLIE_ZETA in forum C Programming
    Replies: 3
    Last Post: 11-18-2001, 12:11 PM
  5. are segments 16 bytes?
    By stupid_mutt in forum C Programming
    Replies: 1
    Last Post: 10-17-2001, 10:41 PM