| Electronic Components Datasheet Search |
|
AS3661 Datasheet(PDF) 80 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS3661 Datasheet(HTML) 80 Page - ams AG |
|
80 / 87 page ![]() www.austriamicrosystems.com Revision 1.3 79 - 85 AS3661 Datasheet - D e t a i l e d D e s c r i p t i o n COMPILER COMMAND SYNTAX: ADV, Target Variable[2], Variable1[2], Variable2[2]; 8.15.3.1 ADV Application Example In this example we want to add variable ‘A’ to variable ‘B’. The result should be stored in variable ‘C’. COMPILER COMMAND SYNTAX EXAMPLE: ADV, 2, 0, 1; 8.15.4 SUB (Numerical) SUB Operator either subtracts the 8-bit value from the current value of the target variable. COMPILER COMMAND SYNTAX: SBN, Target Variable[2], 8-bit value[8]; 8.15.4.1 SBN Application Example In this example we would like to subtract 50d from local variable ‘A’. The result is stored in variable ‘A’. COMPILER COMMAND SYNTAX EXAMPLE: SBN, 0, 50; 8.15.5 SUB (Variables) The SBV command subtracts the value of the variable 2 (A, B, C or D) from the value of the variable 1 (A, B, C or D) and stores the result in the register of target variable (A, B or C). Variables overflow from 0 to 255. COMPILER COMMAND SYNTAX: SBV, Target Variable[2], Variable1[2], Variable2[2]; Table 93. ADV Parameter Description Name Value Description Target Variable 0-2 0 variable A 1 variable B 2 variable C Variable1 0-3 0 local variable A 1 local variable B 2 global variable C3 register address 3CH variable, or register address 42H value Variable2 0-3 0 local variable A 1 local variable B 2 global variable C3 register address 3CH variable, or register address 42H value Table 94. SBN Parameter Description Name Value Description 8-bit value 0-255 variable value Target Variable 0-2 0 variable A 1 variable B 2 variable C Table 95. SBV Parameter Description Name Value Description Target Variable 0-2 0 variable A 1 variable B 2 variable C |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |