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

From WikiTI
Jump to: navigation, search
(Created page with "FindFirstCertField 000310 - FindFirstCertField == Synopsis == '''Hypothesized Official Name:''' Find...")
 
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|FindFirstCertField]]
+
[[Category:84PCE:Syscalls:By Name|GetCertCalcString]]
[[Category:84PCE:Syscalls:By Address|000310 - FindFirstCertField]]
+
[[Category:84PCE:Syscalls:By Address|000338 - GetCertCalcString]]
 
== Synopsis ==
 
== Synopsis ==
'''Hypothesized Official Name:''' FindFirstCertField
+
'''Hypothesized Official Name:''' GetCertCalcString
  
'''Syscall Address:''' 000310h
+
'''Syscall Address:''' 000338h
  
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.
+
This searches the certificate for the null terminated string used to display the type of calculator. This is not a required field; so sometimes it may return null.
  
0B0(0) - Language settings
+
For example, a TI84+CE will have the string "TI-84 Plus CE"
  
 
=== Inputs ===
 
=== Inputs ===
* DE = Field to search for
+
* None
  
 
=== Outputs ===
 
=== Outputs ===
* Pointer to field entry
+
* HL = pointer to string used to display the calculator type
  
 
=== Destroys ===
 
=== Destroys ===
Line 20: Line 20:
  
 
=== Example ===
 
=== Example ===
You can get the string used to determine the current language for example:
 
  
ld de,0B00h
+
  call _GetCertCalcString
  call _FindFirstCertField
+
 
  jp _PutS
 
  jp _PutS

Revision as of 09:48, 26 May 2016

Synopsis

Hypothesized Official Name: GetCertCalcString

Syscall Address: 000338h

This searches the certificate for the null terminated string used to display the type of calculator. This is not a required field; so sometimes it may return null.

For example, a TI84+CE will have the string "TI-84 Plus CE"

Inputs

  • None

Outputs

  • HL = pointer to string used to display the calculator type

Destroys

  • All

Example

call _GetCertCalcString
jp _PutS