Difference between revisions of "Standard Notation"
From TLoZ: ALTTP Hacking Resources
(Created page with "== 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)....") |
|||
Line 16: | Line 16: | ||
;$ABAA..$ABFF | ;$ABAA..$ABFF | ||
: This is an inclusive range of hexadecimal numbers, referring to $ABAA, $ABFF, and any value between them. | : 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 | ||
== ROM Versions == | == ROM Versions == | ||
Line 44: | Line 58: | ||
;(FRA) | ;(FRA) | ||
: France (French) | : France (French) | ||
+ | |||
+ | ;(ALL) | ||
+ | : indicates all versions simultaneously |
Revision as of 03:31, 11 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
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