From 3be7dbc760659f90002db4168fc0f7902705fef1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 12 Jan 2015 20:06:14 -0700 Subject: [PATCH] Add getBootPage pcall --- src/00/jumptable.config | 3 +++ src/00/util.asm | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/00/jumptable.config b/src/00/jumptable.config index a9149d6..4c12fa6 100644 --- a/src/00/jumptable.config +++ b/src/00/jumptable.config @@ -191,3 +191,6 @@ streamWriteByte streamWriteWord streamWriteBuffer + +# Miscellaneous + getBootPage diff --git a/src/00/util.asm b/src/00/util.asm index b2c7f95..aa0fe25 100644 --- a/src/00/util.asm +++ b/src/00/util.asm @@ -185,6 +185,14 @@ getBatteryLevel: ld b, 255 ret +;; getBootPage [Miscellaneous] +;; Gets the boot page for this calculator. +;; Outputs: +;; A: Boot page +getBootPage: + ld a, bootPage + ret + ;; getBootCodeVersionString [Miscellaneous] ;; Gets the version string from the device's boot code. ;; Outputs: