diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2019-11-04 19:40:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-04 19:40:58 -0500 |
commit | 9ebe549347aa16ae3f10d3261242bb1e7bbb6ca6 (patch) | |
tree | 521a897c2da997534abd6f6adc1625968bc4603a /home/movement.asm | |
parent | c9563d5c5e8e3612ac40d70d6f6f5e03ba231f16 (diff) | |
parent | d076159745e688bd58f1e512c4e0fcdd942161e9 (diff) |
Merge pull request #654 from Rangi42/master
Miscellaneous cleanup issues
Diffstat (limited to 'home/movement.asm')
-rw-r--r-- | home/movement.asm | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/home/movement.asm b/home/movement.asm index 4700f48cf..f329a3c3e 100644 --- a/home/movement.asm +++ b/home/movement.asm @@ -127,66 +127,3 @@ ComputePathToWalkToPlayer:: big_step UP big_step LEFT big_step RIGHT - -SetMenuAttributes:: - push hl - push bc - ld hl, w2DMenuCursorInitY - ld b, $8 -.loop - ld a, [de] - inc de - ld [hli], a - dec b - jr nz, .loop - ld a, $1 - ld [hli], a - ld [hli], a - xor a - ld [hli], a - ld [hli], a - ld [hli], a - pop bc - pop hl - ret - -StaticMenuJoypad:: - callfar _StaticMenuJoypad - call GetMenuJoypad - ret - -ScrollingMenuJoypad:: - callfar _ScrollingMenuJoypad - call GetMenuJoypad - ret - -GetMenuJoypad:: - push bc - push af - ldh a, [hJoyLast] - and D_PAD - ld b, a - ldh a, [hJoyPressed] - and BUTTONS - or b - ld b, a - pop af - ld a, b - pop bc - ret - -PlaceHollowCursor:: - ld hl, wCursorCurrentTile - ld a, [hli] - ld h, [hl] - ld l, a - ld [hl], "▷" - ret - -HideCursor:: - ld hl, wCursorCurrentTile - ld a, [hli] - ld h, [hl] - ld l, a - ld [hl], " " - ret |