You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Remove all address comments
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
NUM_SQUARE_ROOTS EQU 255
|
||||
|
||||
GetSquareRoot: ; 13b87
|
||||
GetSquareRoot:
|
||||
; Return the square root of de in b.
|
||||
|
||||
; Rather than calculating the result, we take the index of the
|
||||
@@ -24,7 +24,7 @@ GetSquareRoot: ; 13b87
|
||||
jr c, .loop
|
||||
ret
|
||||
|
||||
.Squares: ; 13b98
|
||||
.Squares:
|
||||
x = 1
|
||||
rept NUM_SQUARE_ROOTS
|
||||
dw x * x
|
||||
|
@@ -1,4 +1,4 @@
|
||||
_Multiply:: ; 66de
|
||||
_Multiply::
|
||||
|
||||
; hMultiplier is one byte.
|
||||
ld a, 8
|
||||
@@ -82,10 +82,9 @@ _Multiply:: ; 66de
|
||||
ld [hProduct + 0], a
|
||||
|
||||
ret
|
||||
; 673e
|
||||
|
||||
|
||||
_Divide:: ; 673e
|
||||
_Divide::
|
||||
xor a
|
||||
ld [hMathBuffer + 0], a
|
||||
ld [hMathBuffer + 1], a
|
||||
@@ -193,4 +192,3 @@ _Divide:: ; 673e
|
||||
ld [hDividend + 0], a
|
||||
|
||||
ret
|
||||
; 67c1
|
||||
|
@@ -1,4 +1,4 @@
|
||||
_PrintNum:: ; c4c7
|
||||
_PrintNum::
|
||||
; Print c digits of the b-byte value from de to hl.
|
||||
; Allows 2 to 7 digits. For 1-digit numbers, add
|
||||
; the value to char "0" instead of calling PrintNum.
|
||||
@@ -178,7 +178,7 @@ _PrintNum:: ; c4c7
|
||||
pop bc
|
||||
ret
|
||||
|
||||
.PrintYen: ; c5ba
|
||||
.PrintYen:
|
||||
push af
|
||||
ld a, [hPrintNum1]
|
||||
and a
|
||||
@@ -193,7 +193,7 @@ _PrintNum:: ; c4c7
|
||||
pop af
|
||||
ret
|
||||
|
||||
.PrintDigit: ; c5cb (3:45cb)
|
||||
.PrintDigit:
|
||||
dec e
|
||||
jr nz, .ok
|
||||
ld a, "0"
|
||||
@@ -278,14 +278,14 @@ _PrintNum:: ; c4c7
|
||||
ld [hl], "<DOT>"
|
||||
ret
|
||||
|
||||
.PrintLeadingZero: ; c644
|
||||
.PrintLeadingZero:
|
||||
; prints a leading zero unless they are turned off in the flags
|
||||
bit 7, d ; print leading zeroes?
|
||||
ret z
|
||||
ld [hl], "0"
|
||||
ret
|
||||
|
||||
.AdvancePointer: ; c64a
|
||||
.AdvancePointer:
|
||||
; increments the pointer unless leading zeroes are not being printed,
|
||||
; the number is left-aligned, and no nonzero digits have been printed yet
|
||||
bit 7, d ; print leading zeroes?
|
||||
|
@@ -1,4 +1,4 @@
|
||||
_Sine:: ; 84d9
|
||||
_Sine::
|
||||
; a = d * sin(e * pi/32)
|
||||
ld a, e
|
||||
calc_sine_wave
|
||||
|
Reference in New Issue
Block a user