Casio Graphical Calculator Encyclopaedia

Token: Dsz
Type: Program Flow
Dsz <var>


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

Other information:

Appears to be bug-free. Note that "Dsz <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
  Lbl 0
    Dsz 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: Isz, 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