diff options
author | Eldred Habert <eldredhabert0@gmail.com> | 2018-06-10 17:08:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-10 17:08:55 +0200 |
commit | b0e8bae78e0972b13370ff6e31c80f18b67348fc (patch) | |
tree | 7d83ac3340a0535aa85269e7247008164f9b8d7d /home/math.asm | |
parent | 20f07292a54097dd3b704bc79bd50097c1d16502 (diff) | |
parent | bfdaa1151902023fc69c97328cf12bdd88816185 (diff) |
Merge pull request #18 from PikalaxALT/math_etc
More dism progress in ROM0
Diffstat (limited to 'home/math.asm')
-rw-r--r-- | home/math.asm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/home/math.asm b/home/math.asm new file mode 100644 index 0000000..8b3db6f --- /dev/null +++ b/home/math.asm @@ -0,0 +1,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 |