flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > OS Construction > Conserving space? | 
  
| Author | 
  | 
              
| 
                  
                   rhyno_dagreat 13 Oct 2006, 22:13 
                  If anyone needs more real code as opposed to pseudocode to understand what I mean, I can show you the code from my TinyOS where I learned of this happening. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   rhyno_dagreat 14 Oct 2006, 20:32 
                  Does anyone know why it may be doing this? I mean, if the GDT is like it is in the second bit of code, it gets above 512, and I have to start subtracting zeros from the TIMES 510-($-$$) db 0, but if it's like it is in the first code clip, it doesn't take up nearly as much space. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   rhyno_dagreat 15 Oct 2006, 02:07 
                  I just started putting the IDT into my OS, and it's the same idea, that as long as the GDT and IDT are in between the 16-bit and 32-bit code, it stays small. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   Goplat 15 Oct 2006, 02:07 
                  I can't think of any reason, but the easiest way to find out would probably be to just look at the two files side by side in a hex editor. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   revolution 15 Oct 2006, 02:20 
                  We can't help you if you don't post your code. 
                  
                 | 
              |||
                  
  | 
              
| 
                  
                   rhyno_dagreat 15 Oct 2006, 02:52 
                  Okay... Now I'm embarrassed... I tried it again, and it stayed small... The stupid thing I did was I put the GDT after the times 510 and end of bootsector signature when I did it before... Sorry! 
                  
                 | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.