title: "Inc" description: TRSE built-in method (from IDE help)
Inc
Systems: MOS6502, Z80, Z180, PX86, M6809
Parameters: a
Inc( [address] );
- [address] - the address to increment
Description
Increases the value at the address with 1. Creates an inc directive in assembler.
Example
inc(^$d020); // inc $d020 in assembler
inc(my_variable); // inc my_variable
inc(my_array[i]); // inc my_array,x