How doesn't it?
For one byte (to be simple)...
Given 0xFA (-6 signed, 250 unsigned) and adding 1 each time,
0xFA + 1 = 0xFB (-5 signed, 251 unsigned)
0xFB + 1 = 0xFC (-4 signed, 252 unsigned)
0xFC + 1 = 0xFD (-3 signed, 253 unsigned)
0xFD + 1 = 0xFE (-2 signed, 254 unsigned)
0xFE + 1 = 0xFF (-1 signed, 255 unsigned)
0xFF + 1 = 0x100 (which is an overflow for 1 byte, so it is cut to 0x00.)
When subtracting 1 from 0, you get 0xFF (or -1)... As we learn some time ago, subtracting is adding the opposite:
0 - 1 = 0 + -1 (0xFF, or 255)
Post has been edited 1 time(s), last time on Feb 17 2009, 2:53 am by FaRTy1billion.
TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB -
topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig -
topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!