#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-15/60R last touched 14JAN16 -------------------------------------------------*/ 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 = 150; // #72, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 150 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 200 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[] = P(int x1)//input in seconds! #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*1000); // #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: 1000 The size of the command is 6 bytes The command pointer is 476 #124, 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 478 #125, 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 484 #126, 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 487 #127, 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 490 #128, 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 496 #129, 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 499 #130, 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 502 #131, 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 505 #132, 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 507 #133, 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 511 #134, 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 515 #135, 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 519 #136, 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 521 OL[1]=0; //off pump #137, 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 527 #138, 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 533 #139, 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 536 #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 538 return; #141, 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 540 #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 542 //--------------------------------------------------------------- function[] = GoPos(int pos) #143, 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 545 #144, 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 547 //sample position pos //16 pos around the circumf. Pos0=HOME. Pos1 is 19deg //from TDS. Pos16 is 341 deg (-19deg) from TDS. Other //positions are 23deg apart //empirically measured // cnts to pos 1 = 950 // cnts between others = 1170 int cnts; int target; if(pos>16 || pos<0) #145, 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 551 #146, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 16 The size of the command is 6 bytes The command pointer is 557 #147, 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 559 #148, 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 563 #149, 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 569 #150, 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 571 #151, 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 573 #152, 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 577 #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 579 return; #154, 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 581 #155, 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 583 end //go home first // removed 14JAN16 HOME(); if(!pos) #156, 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 587 #157, 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 589 #158, 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 593 #159, 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 595 MO=0; #160, 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 601 #161, 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 607 #162, 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 610 #163, 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 612 return; #164, 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 614 #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 616 end //now go to pos target = (1170*(pos-1))+950; #166, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 1170 The size of the command is 6 bytes The command pointer is 622 #167, 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 626 #168, 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 632 #169, 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 634 #170, 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 636 #171, MOV, ChangeStack: 1, OperType1: Int_Type, OperType2: Int_Type, AddrMode1: CMD_IMMEDIATELY_4, AddrMode2: ABSENT, Operand 1: 950 The size of the command is 6 bytes The command pointer is 642 #172, 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 644 #173, 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 648 #174, 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 650 //set up motor UM=2; #175, 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 656 #176, 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 662 #177, 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 665 #178, 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 667 MO=1; #179, 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 673 #180, 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 679 #181, 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 682 #182, 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 684 JV=750; #183, 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 690 #184, 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 696 #185, 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 699 #186, 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 701 BG; #187, 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 707 #188, 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 713 #189, 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 716 #190, 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 718 cnts=PX; #191, 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 721 #192, 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 725 #193, 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 727 while ( abs(cnts-target) > 10) #194, 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 731 #195, 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 735 #196, 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 737 #197, 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 740 #198, 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 746 #199, 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 748 #200, 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 752 #201, 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 754 wait(10); #202, 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 760 #203, 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 766 #204, 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 769 #205, 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 772 #206, 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 778 #207, 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 781 #208, 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 784 #209, 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 787 #210, 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 789 #211, 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 793 #212, 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 797 #213, 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 801 #214, 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 803 cnts=PX; #215, 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 806 #216, 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 810 #217, 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 812 end #218, 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 816 #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 818 MO=0; #220, 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 824 #221, 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 830 #222, 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 833 #223, 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 835 return; #224, 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 837 #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 839 //------------------------------------------------------------- function[] = Next() #226, 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 842 #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 844 int pos; pos = UI[1]; //issue UI[1]=0 before deployment!!!! #228, 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 850 #229, 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 853 #230, 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 857 #231, 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 859 GoPos(pos+1); #232, 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 863 #233, 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 867 #234, 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 873 #235, 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 875 #236, 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: 881 The size of the command is 6 bytes The command pointer is 881 #237, 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 885 #238, 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 887 UI[1] = pos+1; #239, 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 891 #240, 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 897 #241, 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 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, 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 908 #244, 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 910 //user must issue SV to save to flash!!!!! return; #245, 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 912 #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 914 //--------------------------------------------------------------- #247, 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 916