Omron C20K Video Game Controller User Manual


 
!
57
4-6-6 Inserting and Deleting Instructions
In PROGRAM mode, any instruction that is currently displayed can be de-
leted or another instruction can be inserted before it. These are not possible
in RUN or MONITOR modes.
To insert an instruction, display the instruction before which you want the new
instruction to be placed, input the instruction word in the same way as when
inputting a program initially, and then press INS and the down key. If other
words are required for the instruction, input these in the same way as when
inputting a program initially.
To delete an instruction, display the instruction word of the instruction to be
deleted and then press DEL and the up key. All the words for the designated
instruction will be deleted.
Caution Be careful not to inadvertently delete instructions; there is no way to recover
them without reinputting them completely.
Key Sequence
When an instruction is inserted or deleted, all addresses in Program Memory
following the operation are adjusted automatically so that there are no blank
addresses and no unaddressed instructions.
The following mnemonic code shows the changes that are achieved in a pro-
gram through the key sequences and displays shown below.
Original Program
Address Instruction Operands
0000 LD 0100
0001 AND 0101
0002 LD 0201
0003 AND NOT 0102
0004 OR LD ---
0005 AND 0103
0006 AND NOT 0104
0007 OUT 0201
0008 END(01) ---
0105
0100 0103 01040101
0201
END(01)
0102
0201
Delete
0104
0100
0103
0105
0101
0201
END(01)
0102
0201
Before Insertion:
Before Deletion:
Example
Inputting, Modifying, and Checking the Program Section 4-6