[go: up one dir, main page]

Menu

[r39]: / psrp / asm / t1c_1.asm  Maximize  Restore  History

Download this file

28 lines (19 with data), 367 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
;
; Item lookup
;
; Written in TASM 3.0.1
;
#include "vars.asm"
.org $33da ; $33da-33f3
PUSH HL ; Save string ptr
PUSH DE ; Save VRAM ptr
PUSH BC ; Save width, temp
LD A,($c2c4) ; Grab item #
LD HL,ITEMS ; Item lookup
; .org $33e3
CALL DICT
POP BC
POP DE
POP HL
JP $3365 ; Decode next byte
.end ; TASM-only