Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - -gu treat bytes as unsigned http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 -Gu                 Treat bytes as unsigned
------------------------------------------------------------------------------
 Syntax
   -Gu

 Arguments
   None.

 Default
   Byte constants are signed.

 Description
   The -Gu switch instructs the compiler to treat byte constants as
   unsigned. By default, byte values as hadnles as signed, i.e. ranging from
   -128 up to 127. This can cause unexpected results, for example when using
   byte values to represent keyboard character codes above 127. Using the
   -Gu option makes the compiler treat bytes as unsigned, i.e. ranging
   from 0 up to 255.

   Setting bytes to unsigned has no effect on displaying these numerics on
   the screen.

 Example
   . Treat bytes as unsigned.
   
     force.exe -Gu test.prg
   
   . Treat bytes as signed (override the effect of a -Gu switch in
     force.cfg).
   
     force.exe -Gu- test.prg

See Also: -C

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