Difference between revisions of "83Plus:BCALLs:80AB"

From WikiTI
Jump to: navigation, search
 
(Inputs: 8000 -> 4000 and app name example)
 
Line 8: Line 8:
  
 
=== Inputs ===
 
=== Inputs ===
* AHL = address of the first type byte of the field whose contents you want to search (8000h if you want to search an installed app header)
+
* AHL = address of the first type byte of the field whose contents you want to search (4000h if you want to search an installed app header)
* DE = field to search for (e.g. 8010 to search for the key ID)
+
* DE = field to search for (e.g. 8010 to search for the key ID or 8040 for app name)
  
 
=== Outputs ===
 
=== Outputs ===

Latest revision as of 17:20, 14 August 2007

Synopsis

Unofficial Name: FindAppHeaderSubField

BCALL Address: 80AB

Search for a subfield of the given app header.

Inputs

  • AHL = address of the first type byte of the field whose contents you want to search (4000h if you want to search an installed app header)
  • DE = field to search for (e.g. 8010 to search for the key ID or 8040 for app name)

Outputs

  • HL = address of the first type byte of the first matching field
  • NZ set if not found.

Destroys

Comments

This routine is almost identical to FindOSHeaderSubfield; the difference is that it will allow you to search starting at a zero byte (i.e., a deleted app header.) The OS uses this routine to search for data in Flash Apps (which may or may not have been deleted already.)