Difference between revisions of "Standard Notation"

From TLoZ: ALTTP Hacking Resources
Jump to: navigation, search
 
Line 30: Line 30:
 
;$AF & $F0
 
;$AF & $F0
 
: bitwise AND
 
: bitwise AND
 +
 +
;$AF / $F0
 +
: integer divide (take quotient, ignore remainder)
 +
 +
;$AF % $F0
 +
: integer modulo (take remainder, ignore quotient)
  
 
== ROM Versions ==
 
== ROM Versions ==

Latest revision as of 11:35, 14 November 2016

Numbers

$ABCD
This is a number in hexadecimal (base 16). Some programming languages represent this as 0xABCD instead.
%1001
This is a number in binary (base 2). Some programming languages represent this as 0b1001 instead.

Offsets

$3C1B[$20]
This is an offset (number of bytes from the start) and length of something. In this case, the first byte is at $3C1B and the last byte is at $3C3A ($3C1B+$20-1).

Ranges

$ABAA..$ABFF
This is an inclusive range of hexadecimal numbers, referring to $ABAA, $ABFF, and any value between them.

Computation

$AF << 2
bitwise shift left
$AF >> 2
bitwise shift right
$AF | $F0
bitwise OR
$AF & $F0
bitwise AND
$AF / $F0
integer divide (take quotient, ignore remainder)
$AF % $F0
integer modulo (take remainder, ignore quotient)

ROM Versions

See also: ROM Versions

(J10)
Japan (1.0) (Japanese)
(J11)
Japan (1.1) (Japanese)
(J12)
Japan (1.2) (Japanese)
(USA)
USA (English)
(CAN)
Canada (French)
(EUR)
Europe (English)
(GER)
Germany (German)
(FRA)
France (French)
(ALL)
indicates all versions simultaneously