Difference between revisions of "83Plus:BCALLs:807E"

From WikiTI
Jump to: navigation, search
(Destroys: --CalcKing @ school)
m (Comments)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:83Plus:BCALLs:By Name:Other|GetCalcSerial]]
+
[[Category:83Plus:BCALLs:By Name:Other|GetCalcSerial]] [[Category:83Plus:BCALLs:By Name|GetCalcSerial]] [[Category:83Plus:BCALLs:By Address|807E - GetCalcSerial]]
[[Category:83Plus:BCALLs:By Name|GetCalcSerial]]
+
[[Category:83Plus:BCALLs:By Address|807E - GetCalcSerial]]
+
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' GetCalcSerial
 
'''Official Name:''' GetCalcSerial
Line 15: Line 13:
  
 
=== Outputs ===
 
=== Outputs ===
 +
Z = 0 if the ID could not be retrieved. Z = 1 if
 +
the ID was successfully retrieved. In that case:
 
* [[83Plus:RAM:8499|OP4]]: Contains the first five bytes of the calculator ID
 
* [[83Plus:RAM:8499|OP4]]: Contains the first five bytes of the calculator ID
 +
* B = 5, the number of bytes that were loaded
  
 
=== Destroys ===
 
=== Destroys ===
* AF, B (Not C), DE, HL
+
* AF, DE, HL
  
 
== Comments ==
 
== Comments ==
This B_CALL gets the first five bytes of the ID as actual bytes, you have to convert them before you display them. The rest of the ID can't be retrieved using a B_CALL, although there seems to be a call address to get them in every OS. The only problem with using this call address is that your software will only support the oss you add support for and will never work after an upgrade to a new os.
+
This B_CALL gets the first five bytes of the ID as actual bytes, you have to convert them before you display them. The rest of the ID can't be retrieved using a B_CALL, although there seems to be a call address to get them in every OS. The only problem with using this call address is that your software will only support the OSes you add support for and will never work after an upgrade to a new OS.
 +
 
 +
There are a few situation when this bcall returns Z = 0, namely when the calculator contains no ID. It may happen when running on an emulator, or on a handheld unit where the flash memory has become corrupted

Latest revision as of 11:35, 9 August 2007

Synopsis

Official Name: GetCalcSerial

Other Name: GetID

BCALL Address: 807E

Gets the first five bytes of the calculator ID.

Inputs

None

Outputs

Z = 0 if the ID could not be retrieved. Z = 1 if the ID was successfully retrieved. In that case:

  • OP4: Contains the first five bytes of the calculator ID
  • B = 5, the number of bytes that were loaded

Destroys

  • AF, DE, HL

Comments

This B_CALL gets the first five bytes of the ID as actual bytes, you have to convert them before you display them. The rest of the ID can't be retrieved using a B_CALL, although there seems to be a call address to get them in every OS. The only problem with using this call address is that your software will only support the OSes you add support for and will never work after an upgrade to a new OS.

There are a few situation when this bcall returns Z = 0, namely when the calculator contains no ID. It may happen when running on an emulator, or on a handheld unit where the flash memory has become corrupted