Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  
  This section is only intended for those wanting to use the
  Extend System, or wishing to understand more about the
  restrictions imposed by protected mode operation (of 286, 386,
  486 chips) and/or Windows.
  
  The full Extend System is available, but the following rules
  apply:
  
  (a)  programs must not modify anything stored in a CODE
  segment, as such segments are not writable (this is enforced
  by 286, 386, 486 and Pentium chips)
  
  (b)  direct access to hardware is not a good idea, as this is
  often incompatible with Windows (in particular, don't try to
  access video ram; accessing interrupt controllers or comms
  ports may work)
  
  (c)  never do arithmetic on segment register values or segment
  addresses (they are selectors which the protected mode
  hardware and Windows control; you can load/store/compare
  selectors, of course)
  
  (d)  don't try to load a segment register with a value which
  is not a valid selector (e.g. don't use these registers as
  temporaries)
  
  (e)  don't try to control the features of the cpu which are
  only available to protected mode programs (e.g. the interrupt
  flag bit)
  
  (f)  using the VM API is allowed, but rule (c) still applies
  (this should not cause any problems)

  You can, of course, use Windows API functions, such as
  GlobalAlloc(), if you wish: see the next section.
  
  

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson