Difference between revisions of "84PCE:Syscalls:000310"

From WikiTI
Jump to: navigation, search
(Undo revision 11192 by MateoConLechuga (talk))
 
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|GetCertCalcID]]
+
[[Category:84PCE:Syscalls:By Name|FindFirstCertField]]
[[Category:84PCE:Syscalls:By Address|00033C - GetCertCalcID]]
+
[[Category:84PCE:Syscalls:By Address|000310 - FindFirstCertField]]
 
== Synopsis ==
 
== Synopsis ==
'''Hypothesized Official Name:''' GetCertCalcID
+
'''Hypothesized Official Name:''' FindFirstCertField
  
'''Syscall Address:''' 00033Ch
+
'''Syscall Address:''' 000310h
  
Searches the certificate for the calculator ID, and returns a pointer to it.
+
This will search from the beginning of the certificate located at 3B0001 for a particular field. Types of fields you can search for are listed below; there are probably many more useful ones.
 +
 
 +
0B0(0) - Language settings
  
 
=== Inputs ===
 
=== Inputs ===
* None
+
* DE = Field to search for
  
 
=== Outputs ===
 
=== Outputs ===
* Pointer to calculator ID
+
* Pointer to field entry
  
 
=== Destroys ===
 
=== Destroys ===
 
* All
 
* All
 +
 +
=== Example ===
 +
You can get the string used to determine the current language for example:
 +
 +
ld de,0B00h
 +
call _FindFirstCertField
 +
jp _PutS

Latest revision as of 10:51, 26 May 2016

Synopsis

Hypothesized Official Name: FindFirstCertField

Syscall Address: 000310h

This will search from the beginning of the certificate located at 3B0001 for a particular field. Types of fields you can search for are listed below; there are probably many more useful ones.

0B0(0) - Language settings

Inputs

  • DE = Field to search for

Outputs

  • Pointer to field entry

Destroys

  • All

Example

You can get the string used to determine the current language for example:

ld de,0B00h
call _FindFirstCertField
jp _PutS