View Single Post
  #9  
Old 18th November 2013, 09:55 PM
retroben's Avatar
retroben retroben is offline
Alpha Tester
Project Supporter
Senior Member
 
Join Date: Jul 2013
Posts: 687
Default

Zero is neutral because it is neither negative or positive.
There is no negative zero.

I know 8bits,ten positions make it decimal/hexadecimal.
Hexadecimal means ten with additional six while hex means six.
I may have bit positions wrong,but my values are correct.

Every bit is multiples of two of the previous bit.

0
1 2 4 8 16 32 64 128
255

0
1 2 4 8 10 20 40 80
FF

I forgot to realize that 80 in hex can be positive when used
in half words (2 byte length).

A perfect example is the universal Sega Genesis
Sonic 1/2/3/K/3K games Ring Count Pro Action Replay code.

Rings=127
FFFE20:007F

Rings=128
FFFE20:0080

Rings=255
FFFE20:00FF

Rings=256
FFFE20:0100

Rings=999
FFFE20:03E7

The two byted amounts will stay positive until after 7FFF.

Rings=32767 (garbled counter)
FFFE20:7FFF

Values 80-FF in one byte codes can sometimes still be positive when used in item counts.

In physics based codes,80-FF are negative.
Running forward current speed is 32 (20 in hex).
Using the Zelda OOT Press A to Run Fast cheat modified as an example.
It might be two bytes long,which would need FFE0 for negative 32.
Change 20 to E0 and you will run backwards at 32 speed when trying to run forward.
Proof of zero being neutral,you will not move forward or backward with 0.
Reply With Quote