Network 1: Open DB with indirect addressing
L #dbnumber // Copy DB number in MW100
T MW 100 //
OPN DB[MW 100] // Open DB
Network 2: Loop for deleting
L P#18.0 // Store end address (DBW18) as Pointer
T MD 40 // in MD 40;
L 10 // Preset loop counter to 10
next: T MB 50 // and transfer into MB 50;
L 0 // Load initialization value
T DBW[MD 40] // and transfer into the DB;
L MD 40 // Load Pointer
L P#2.0 // and decrease by 2 bytes
-D // and then transfer back
T MD 40 // to MD 40;
L MB 50 // Load loop counter
LOOP next // decrease and if necessary jump;
Đánh dấu