Difference between revisions of "83Plus:BCALLs:50BC"

From WikiTI
Jump to: navigation, search
m (Added categories)
m (Example)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:Variable|GetAppBasePage]]
+
[[Category:83Plus:BCALLs:By Name:Variable|GetAppBasePage]] [[Category:83Plus:BCALLs:By Name|GetAppBasePage]] [[Category:83Plus:BCALLs:By Address|50BC - GetAppBasePage]]
[[Category:83Plus:BCALLs:By Name|GetAppBasePage]]
+
[[Category:83Plus:BCALLs:By Address|50BC - GetAppBasePage]]
+
 
== Synopsis ==
 
== Synopsis ==
 
'''Unofficial Name:''' GetAppBasePage
 
'''Unofficial Name:''' GetAppBasePage
Line 22: Line 20:
  
 
== Example ==
 
== Example ==
<nowiki> in a,(23h)
+
in a,[[83Plus:Ports:23|(23h)]]
loop:
+
loop:
inc a
+
inc a
cp 6Ah  ;Last app page on SE
+
cp 6Ah  ;Last app page on SE
ret z
+
ret z
B_CALL GetAppBasePage
+
B_CALL GetAppBasePage
;Register A now points to an application's first page
+
;Register A now points to an application's first page
jr loop</nowiki>
+
jr loop

Latest revision as of 14:38, 30 March 2005

Synopsis

Unofficial Name: GetAppBasePage

BCALL Address: 50BC

Returns the base (first) page of an application.

Inputs

  • A: application page

Outputs

  • A: application's base page.

Registers Destroyed

  • DE, HL

Comments

This entry point is only useful for multipage applications. It can be used to browse through the application table, as in the example code below (which works only on an SE calculator).

Example

	in a,(23h)
loop:
	inc a
	cp 6Ah  ;Last app page on SE
	ret z
	B_CALL GetAppBasePage
	;Register A now points to an application's first page
	jr loop