diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-04-01 14:44:34 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2017-04-01 14:44:34 -0700 |
commit | 0ee5b88e166a1821580c54998b0461e74b91f312 (patch) | |
tree | 3249042ba2ce68c5562e6e42be9f2abf918d1698 /home.asm | |
parent | 40996b18683b46c5716164eba2ae236b6810d19c (diff) |
Dump SineTable
Diffstat (limited to 'home.asm')
-rwxr-xr-x | home.asm | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -4157,12 +4157,13 @@ Sine: ; 0x2149 ; sin(a) push hl ld [hSignedMathSignBuffer], a - and $7f + and $7f ; subtract 180 degrees cp $40 - jr c, .positive + jr c, .firstQuadrant + ; convert angle so it's between 0 and 90 degrees cpl add $80+1 -.positive +.firstQuadrant ld hl, SineTable ld e, a ld d, $0 @@ -4976,11 +4977,7 @@ SubTileXPos_CollisionData7: ; 0x268e db $18, $10, $04 db $18, $08, $03 -SineTable: - dr $26be, $26ff - -Data_26ff: - dr $26ff, $2720 +INCLUDE "data/sine_table.asm" CheckGameObjectCollisions: ; 0x2720 ld a, $ff |