Casio Graphical Calculator Encyclopaedia

Token: Isz
Type: Program flow
Isz <var>


Increment <var> by 1. If the result is zero, skip the next statement.

Other information:

Appears to be bug-free. Note that "Isz <var>:0" is one byte shorter than "<var> + 1 -> <var>".

This command is intended to be used to make counting loops shorter, as follows:

  (-)5 -> A   ; (-) is the CTF token for minus
  Lbl 0
    Isz A
  Goto 0

which would output "HELLO WORLD" five times. On the fifth time, A would become zero, so the Goto could be skipped.

See also: Dsz, Goto
Return to index
This page was created by Tom Lynn. Comments etc. to:
This page last updated: Friday, 30 April, 1999

Written in notepad and compiled with WTA, for clean, consistent HTML.

Validate this page with WebTechs  - Validate this page with KGV  - Best Viewed With Any Browser