mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-21 22:52:15 +13:00
Pull a lot of engine out of main.asm
This commit is contained in:
parent
ea3ba4cde3
commit
15427f5320
110 changed files with 39093 additions and 38990 deletions
23
engine/items/tm_prices.asm
Executable file
23
engine/items/tm_prices.asm
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
GetMachinePrice: ; 7bf86 (1e:7f86)
|
||||
ld a, [$cf91]
|
||||
sub TM_01
|
||||
ret c
|
||||
ld d, a
|
||||
ld hl, TechnicalMachinePrices ; $7fa7
|
||||
srl a
|
||||
ld c, a
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
srl d
|
||||
jr nc, .asm_7bf9d
|
||||
swap a
|
||||
.asm_7bf9d
|
||||
and $f0
|
||||
ld [H_DOWNARROWBLINKCNT2], a ; $ff8c
|
||||
xor a
|
||||
ld [H_DOWNARROWBLINKCNT1], a ; $ff8b
|
||||
ld [$ff8d], a
|
||||
ret
|
||||
|
||||
INCLUDE "data/tm_prices.asm"
|
||||
Loading…
Add table
Add a link
Reference in a new issue