83Plus:BCALLs:8018

From WikiTI
Revision as of 18:14, 27 March 2005 by FloppusMaximus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: Do not take the information on this template page as actual documentation!

Use this template for ROMCalls on calculators that don't use banked OS calls. Simply replace every occurance of bcall/BCALL/b_call with romcall/ROMCall/call.

The BCALLs are named by their b_call address, in hexadecimal. An example is 83Plus:BCALLs:4009.


Synopsis

Official Name: ProveTheRiemannHypothesis

BCALL Address: 0042

Proves the Riemann Hypothesis, storing the proof in an AppVar.

Inputs

  • OP1: AppVar to save proof into
  • HL: Maximum length of proof, in pages (must be at least 200)
  • bit proofCorrect, (iy + proofFlags): Set to generate a correct proof

Outputs

  • Proof stored in AppVar
  • Zero Flag: Set if successful

Destroys

  • af

Comments

This B_CALL proves the Riemann Hypothesis, giving a proof under the required number of pages. It does this by randomly guessing proofs until it finds one that works. Needless to say, the calculator's batteries will run out before this B_CALL completes.

Example

NaodW29-nowiki8e12bb1231d78a400000001

Credits and Contributions

  • /dev/null: For not answering my questions about this B_CALL