Skip to content
ChipWits Robot Coding Game
  • Home
  • About
  • Devlog
  • Team
  • Retro
    • ChipWits Emulator
    • Nostalgia
  • Sign Up
Demo + Wishlist
Demo + Wishlist
ChipWits Robot Coding Game
  • Home
  • About
  • Devlog
  • Team
  • Retro
    • ChipWits Emulator
    • Nostalgia
  • Sign Up

IBOL

40
  • CREATED CHIP SOLUTIONS REMAIN IN THE WORKSHOP GRID
  • SHARING YOUR CHIPWIT (IBOL CODES)
  • LOCKED CHIPS
  • JUNCTION
  • IF THING EQUALS
  • CONNECTORS
  • ACTION CHIPS
  • CONTROL CHIPS
  • SENSING CHIPS
  • STACK CHIPS
  • REGISTERS
  • CHIPS (FUNCTION AND HOW TO BUILD THEM)
  • ARGUMENT
  • OPERATOR
  • Operators
    • IF THING EQUALS
    • CYCLES AND FUEL COST LIST
    • SUBPANEL (OPERATOR)
    • PUSH NUMBER
    • PUSH THING
    • IF NUMBER EQUALS
    • IF NUMBER IS LESS THAN
    • POP
    • PUSH DIRECTION
    • IF DIRECTION EQUALS
    • DECREMENT
    • OPERATOR
    • INCREMENT
    • PUSH (OVERVIEW)
    • BOOMERANG
    • IF KEY
    • LOOP
    • IF HEADS
    • STOPLIGHT (CLASSIC MISSIONS)
    • SKATE
    • ZAP
    • SING
    • IF SMELL
    • PICKUP
    • IF FEEL
    • IF SEE

Controls and Settings

4
  • BASIC KEYBOARD CONTROLS AND KEYBOARD SHORTCUTS
  • BASIC MOUSE CONTROLS
  • YOUR CHIPWIT (GAME SETTINGS)
  • CAMERA CONTROLS

Advanced Programming

13
  • SUBPANEL (OPERATOR)
  • PUSH THING
  • IF THING EQUALS
  • PUSH NUMBER
  • IF NUMBER EQUALS
  • IF NUMBER IS LESS THAN
  • POP
  • MEMORY STACK
  • STACK CHIPS
  • PUSH DIRECTION
  • IF DIRECTION EQUALS
  • PUSH (OVERVIEW)
  • REGISTERS

Characters

1
  • PROFESSOR CHIP

Starting Information

1
  • STARTING INFORMATION LIST

Workshop and Playing

26
  • CREATED CHIP SOLUTIONS REMAIN IN THE WORKSHOP GRID
  • FUEL (ENERGY)
  • ENVIRONMENTAL THINGS
  • BAD THINGS
  • TYPES OF DAMAGE
  • HEALTH
  • CYCLES
  • SENSING CHIPS
  • LOCKED CHIPS
  • ACTION CHIPS
  • STACK CHIPS
  • CONTROL CHIPS
  • CONNECTORS
  • CHIPS (FUNCTION AND HOW TO BUILD THEM)
  • WORKING WITH CHIPS IN THE WORKSHOP
  • SHARING YOUR CHIPWIT (IBOL CODES)
  • WORKSHOP AND PLAY AREA
  • RESTART BUTTON
  • STEP BUTTON
  • WORKSHOP PROGRAMMING TOOLS BUTTONS AND WORKSHOP MENU
  • PLAY/PAUSE BUTTON
  • GAME SPEED SLIDER
  • DELETE (WORKSHOP RADIAL MENU)
  • STARTING POSITION RULE
  • MAIN PANEL AND SUBPANELS
  • RADIAL WORKSHOP MENU

Missions

12
  • FUEL (ENERGY)
  • ENVIRONMENTAL THINGS
  • BAD THINGS
  • GOOD THINGS
  • TYPES OF DAMAGE
  • CYCLES
  • HEALTH
  • MISSION OBJECTIVES
  • SELECT A MISSION SCREEN
  • PUZZLE MISSIONS
  • DR. DROOG CAMPAIGN MISSIONS
  • CLASSIC MISSIONS
View Categories
  • Home
  • Docs
  • IBOL
  • Operators
  • DECREMENT

DECREMENT


The Decrement chip reduces the value of a specified memory cell by 1, often used for controlling loops or countdowns in your ChipWit’s program.


Specifications #

  • Arguments: None
  • Creates a True or False Branch?: No, Decrement does not create a True/False branch.
  • Number of Cycles Used: 1
  • Fuel: 1


Example of Use #

Your ChipWit needs to Zap three Electrocrabs, but after the third Zap, it should stop Zapping and start Skating to the right. Here’s how to set it up:

  1. Set Up Push Number Chip:
    • Use the Push Number chip with “3” as the argument (representing the number of Electrocrabs to zap).
  2. Zap Electrocrabs:
    • Place an If See Electrocrab chip in your program to detect nearby Electrocrabs.
    • When an Electrocrab is detected, the ChipWit will zap it using the Zap operator.
  3. Use the Decrement Chip:
    • After each Zap, use the Decrement chip to reduce the value in the register by 1. This will count down from 3 to 0 with each zap.
  4. Conditional Check:
    • Add an If Number Equals chip to check when the register equals 0 (indicating all Electrocrabs have been zapped).
    • Once the register hits 0, the ChipWit will stop Zapping and switch to Skate Right to continue moving.

The Decrement chip is crucial for managing loops or countdowns, allowing your ChipWit to perform repeated actions with precision and stop when necessary.

PLEASE NOTE: The stack cannot exceed 7, and decrementing to zero (NIL — or the bottom of the stack) does nothing.


History #

“Decrement” as it appears in various historic incarnations of ChipWits!


COMMODORE 64:

MANUAL:
Decrement subtracts one from the number at the top of the Number Stack. However, if an attempt is made to increment the top of the Number Stack beyond seven, it “rolls around’ and becomes a zero. Likewise, if it is decremented below zero, it becomes seven.”





APPLE II:


MANUAL:
“DECREMENT decreases the value at the top of the Number Stack by one. Numbers decrease from seven to zero and then wrap around (return) to seven. There must be a value in the Number Stack in order to DECREMENT.”





MAC:



MANUAL:
“DECREMENT decreases the value at the top of the Number Slack by one. Numbers decrease from seven to zero and then wrap around (return) to seven. There must be a value in the Number Slack to be DECREMENTed.”



CHIPWITS II (WINDOWS 95):

Related #

Updated on November 16, 2024

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
CYCLES AND FUEL COST LISTINCREMENT

Powered by BetterDocs

Leave a ReplyCancel reply

Table of Contents
  • Specifications
  • Example of Use
  • History

Join Our Mailing List!

Are you interested in learning more about ChipWits and tracking our development? Provide your name and email address below to join our mailing list.
We respect your email address and don’t spam. You can unsubscribe at any time. We generally send a short email about the game once every week or two.

Check your inbox or spam folder to confirm your subscription.

Copyright © 2026 ChipWits, Inc.

  • Contact
  • Press Kit
  • Privacy Policy
  • Terms of Use
 

Loading Comments...