summaryrefslogtreecommitdiff
path: root/home/math.asm
blob: 8b3db6f7970a53e3eb692489cd09c5ee5449e259 (plain)
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
include "constants.asm"

if DEBUG
SECTION "Math utility functions", ROM0 [$3380]
else
SECTION "Math utility functions", ROM0 [$3344]
endc

Multiply::
	push hl
	push bc
	callab _Multiply
	pop bc
	pop hl
	ret

Divide::
	push hl
	push de
	push bc
	homecall _Divide
	pop bc
	pop de
	pop hl
	ret