#0, FREE_VAC, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 2 #1, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 4 /* CANON Sampler Elmo drivers Elmo Whistle WHI-A15/60R (advanced) -------------------------------------------------*/ function[] = HOME() #2, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 7 #3, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 9 int t; //set up hall sensor IL[1]=6; **low input #4, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 6 The size of the command is 6 bytes The command pointer is 15 #5, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 21 #6, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 104 The size of the command is 3 bytes The command pointer is 24 #7, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 26 //set up motor UM=2; #8, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 6 bytes The command pointer is 32 #9, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 38 #10, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 41 #11, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 43 MO=1; #12, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 49 #13, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 55 #14, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 58 #15, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 60 JV=750; #16, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 750 The size of the command is 6 bytes The command pointer is 66 #17, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 72 #18, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 107 The size of the command is 3 bytes The command pointer is 75 #19, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 77 //check to see if we are already on HAL sensor. //TODO, move off zero and re-home. right now, //just assume we were fine from last time. if (IB[0]) #20, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 83 #21, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 101 The size of the command is 3 bytes The command pointer is 86 #22, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 44 The size of the command is 4 bytes The command pointer is 90 #23, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 92 PX=0; #24, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 98 #25, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 104 #26, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 107 #27, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 109 MO=0; #28, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 115 #29, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 121 #30, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 124 #31, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 126 return; #32, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 128 #33, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 130 end BG; #34, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 136 #35, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 142 #36, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 145 #37, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 147 t=TM; #38, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 164 The size of the command is 3 bytes The command pointer is 150 #39, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 154 #40, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 156 while (!IB[0]) //go til we trip the HAL #41, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 162 #42, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 101 The size of the command is 3 bytes The command pointer is 165 #43, UNARY_NOT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 167 #44, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 37 The size of the command is 4 bytes The command pointer is 171 #45, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 173 if ( tdif(t)>29000) #46, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 177 #47, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 51 The size of the command is 3 bytes The command pointer is 180 #48, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 29000 The size of the command is 6 bytes The command pointer is 186 #49, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 188 #50, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 12 The size of the command is 4 bytes The command pointer is 192 #51, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 194 break; #52, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 4 bytes The command pointer is 198 #53, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 200 end end #54, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -44 The size of the command is 4 bytes The command pointer is 204 #55, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 206 ST; //stop motor #56, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 212 #57, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 218 #58, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 160 The size of the command is 3 bytes The command pointer is 221 #59, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 223 MO=0; #60, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 229 #61, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 235 #62, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 238 #63, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 240 UM=5; #64, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 5 The size of the command is 6 bytes The command pointer is 246 #65, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 252 #66, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 255 #67, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 257 MO=1; #68, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 263 #69, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 269 #70, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 272 #71, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 274 PR = 200; // #72, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 200 The size of the command is 6 bytes The command pointer is 280 #73, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 286 #74, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 135 The size of the command is 3 bytes The command pointer is 289 #75, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 291 //meas -100 cnts to exact 0 BG; #76, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 297 #77, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 303 #78, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 306 #79, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 308 wait(1000); //let it get back to zero #80, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1000 The size of the command is 6 bytes The command pointer is 314 #81, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 320 #82, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 323 #83, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 326 #84, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 332 #85, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 335 #86, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 338 #87, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 341 #88, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 343 #89, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 347 #90, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 351 #91, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 355 #92, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 357 MO=0; #93, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 363 #94, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 369 #95, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 372 #96, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 374 wait(500); #97, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 500 The size of the command is 6 bytes The command pointer is 380 #98, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 386 #99, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 389 #100, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 392 #101, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 398 #102, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 401 #103, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 404 #104, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 407 #105, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 409 #106, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 413 #107, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 417 #108, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 421 #109, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 423 PX=0; //ZERO the cnter #110, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 429 #111, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 435 #112, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 438 #113, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 440 return; #114, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 442 #115, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 444 //------------------------------------------------------------- function[] = RunPump(int x1) #116, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 3 bytes The command pointer is 447 #117, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 449 //run pump for x1 ms (max 30000) OL[1]=1; //on pump #118, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 455 #119, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 461 #120, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 127 The size of the command is 3 bytes The command pointer is 464 #121, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 466 wait (x1); // #122, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 470 #123, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 476 #124, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 479 #125, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 482 #126, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 488 #127, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 491 #128, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 494 #129, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 497 #130, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 499 #131, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 503 #132, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 507 #133, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 511 #134, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 513 OL[1]=0; //off pump #135, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 519 #136, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 525 #137, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 127 The size of the command is 3 bytes The command pointer is 528 #138, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 530 return; #139, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 532 #140, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 534 //--------------------------------------------------------------- function[] = GoPos(int pos) #141, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 537 #142, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 539 //sample position pos //16 pos around the circumf. Pos0=HOME. Pos1 is 19deg //from TDS. Pos16 is 320 deg (-32deg) from TDS. Other //positions are 38.5deg apart //15200 counts for 1 rev //15200 counts * 32/360 = 1351 cnts to POS1 //15200 counts * 38.5/360 = 1626cnts between pos int cnts; int target; if(pos>9 || pos<0) #143, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 543 #144, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 9 The size of the command is 6 bytes The command pointer is 549 #145, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 551 #146, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 555 #147, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 561 #148, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 563 #149, RSLTOR, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 565 #150, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 4 bytes The command pointer is 569 #151, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 571 return; #152, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 573 #153, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 575 end //go home first HOME(); #154, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 4 bytes The command pointer is 579 #155, USRSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: CMD_IMMEDIATELY_2, Operand 1: 1 Operand 2: 1 Operand 3: 585 The size of the command is 6 bytes The command pointer is 585 #156, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 4 bytes The command pointer is 589 #157, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 591 if(!pos) #158, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 595 #159, UNARY_NOT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 597 #160, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 27 The size of the command is 4 bytes The command pointer is 601 #161, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 603 MO=0; #162, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 609 #163, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 615 #164, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 618 #165, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 620 return; #166, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 622 #167, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 624 end //now go to pos target = (1635*(pos-1))+1425; #168, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1635 The size of the command is 6 bytes The command pointer is 630 #169, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: -6 The size of the command is 4 bytes The command pointer is 634 #170, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 640 #171, SUB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 642 #172, MLT, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 644 #173, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1425 The size of the command is 6 bytes The command pointer is 650 #174, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 652 #175, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 1 The size of the command is 4 bytes The command pointer is 656 #176, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 658 //set up motor UM=2; #177, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 6 bytes The command pointer is 664 #178, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 670 #179, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 172 The size of the command is 3 bytes The command pointer is 673 #180, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 675 MO=1; #181, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 681 #182, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 687 #183, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 690 #184, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 692 JV=750; #185, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 750 The size of the command is 6 bytes The command pointer is 698 #186, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 704 #187, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 107 The size of the command is 3 bytes The command pointer is 707 #188, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 709 BG; #189, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 715 #190, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 721 #191, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 66 The size of the command is 3 bytes The command pointer is 724 #192, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 726 cnts=PX; #193, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 729 #194, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 733 #195, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 735 while ( abs(cnts-target) > 10) #196, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 739 #197, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 4 bytes The command pointer is 743 #198, SUB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 745 #199, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 50 The size of the command is 3 bytes The command pointer is 748 #200, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 6 bytes The command pointer is 754 #201, RSLTA, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 756 #202, JZ_EOL, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 68 The size of the command is 4 bytes The command pointer is 760 #203, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 762 wait(10); #204, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 10 The size of the command is 6 bytes The command pointer is 768 #205, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 774 #206, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 777 #207, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 57 The size of the command is 3 bytes The command pointer is 780 #208, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 786 #209, MOV, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 789 #210, SYSSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 58 The size of the command is 3 bytes The command pointer is 792 #211, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: STACK_IMMEDIATELY, AddrMode2: ABSENT, Operand 1: 2 The size of the command is 3 bytes The command pointer is 795 #212, RSLTB, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 797 #213, JZ, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 8 The size of the command is 4 bytes The command pointer is 801 #214, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -21 The size of the command is 4 bytes The command pointer is 805 #215, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -2 The size of the command is 4 bytes The command pointer is 809 #216, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 811 cnts=PX; #217, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 140 The size of the command is 3 bytes The command pointer is 814 #218, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 818 #219, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 820 end #220, JMP_EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -85 The size of the command is 4 bytes The command pointer is 824 #221, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 826 MO=0; #222, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 6 bytes The command pointer is 832 #223, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 6 bytes The command pointer is 838 #224, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 122 The size of the command is 3 bytes The command pointer is 841 #225, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 843 return; #226, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 845 #227, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 847 //------------------------------------------------------------- function[] = Next() #228, LINK, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 3 bytes The command pointer is 850 #229, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 852 int pos; pos = UI[1]; //issue UI[1]=0 before deployment!!!! #230, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 858 #231, GET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 861 #232, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: CMD_BP_RELATIVE, Operand 2: 0 The size of the command is 4 bytes The command pointer is 865 #233, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 867 GoPos(pos+1); #234, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 4 bytes The command pointer is 871 #235, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 875 #236, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 881 #237, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 883 #238, USRSUBJ, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: CMD_IMMEDIATELY_2, Operand 1: 1 Operand 2: 0 Operand 3: 889 The size of the command is 6 bytes The command pointer is 889 #239, SPADD, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_2, AddrMode2: ABSENT, Operand 1: -1 The size of the command is 4 bytes The command pointer is 893 #240, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 895 UI[1] = pos+1; #241, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_BP_RELATIVE, AddrMode2: ABSENT, Operand 1: 0 The size of the command is 4 bytes The command pointer is 899 #242, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 905 #243, ADD, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 907 #244, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1 The size of the command is 6 bytes The command pointer is 913 #245, SET_COMM, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_1, AddrMode2: ABSENT, Operand 1: 171 The size of the command is 3 bytes The command pointer is 916 #246, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 918 //user must issue SV to save to flash!!!!! return; #247, USRSUBRT, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 920 #248, EOL, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 922 //--------------------------------------------------------------- #249, FREE_VAC, ChangeStack: 0, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: ABSENT, AddrMode2: ABSENT, The size of the command is 2 bytes The command pointer is 924