Skip to content

Commit 3be7dbc

Browse files
committed
Add getBootPage pcall
1 parent ba74611 commit 3be7dbc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/00/jumptable.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,6 @@
191191
streamWriteByte
192192
streamWriteWord
193193
streamWriteBuffer
194+
195+
# Miscellaneous
196+
getBootPage

src/00/util.asm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ getBatteryLevel:
185185
ld b, 255
186186
ret
187187

188+
;; getBootPage [Miscellaneous]
189+
;; Gets the boot page for this calculator.
190+
;; Outputs:
191+
;; A: Boot page
192+
getBootPage:
193+
ld a, bootPage
194+
ret
195+
188196
;; getBootCodeVersionString [Miscellaneous]
189197
;; Gets the version string from the device's boot code.
190198
;; Outputs:

0 commit comments

Comments
 (0)