| Electronic Components Datasheet Search |
|
AS3661 Datasheet(PDF) 79 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS3661 Datasheet(HTML) 79 Page - ams AG |
|
79 / 87 page ![]() www.austriamicrosystems.com Revision 1.3 78 - 85 AS3661 Datasheet - D e t a i l e d D e s c r i p t i o n 8.15 Arithmetic Instructions 8.15.1 LD This instruction is used to assign a value into a variable; the previous value in that variable is overwritten. Each of the engines have two local variables, called A and B. The variable C is a global variable which is shared with all three program execution engines. COMPILER COMMAND SYNTAX: LD, Target Variable[2]; 8.15.1.1 LD Application Example In this example we want to load variable B with a value of 100; COMPILER COMMAND SYNTAX EXAMPLE: LD, 1, 100; 8.15.2 ADD (Numerical Operands) Operator either adds the 8-bit value to the current value of the target variable. COMPILER COMMAND SYNTAX: ADN, Target Variable,[2], 8-Bit value[8]; 8.15.2.1 ADN Application Example In this example we would like to add a value of100 d to variable ‘A’, which is loaded with a value of 10d. The result of the operation is 110d stored in variable ‘A’. COMPILER COMMAND SYNTAX EXAMPLE: ADN, 0, 100; 8.15.3 ADD (Variables) This command adds the value of the variable 1 (A, B, C or D) to the value of the variable 2 (A, B, C or D) and stores the result in the register of variable A, B or C which is defined as target variable. Variables overflow from 255 to 0. Table 91. LD Parameter Description Name Value Description Target Variable 0-2 0 variable A 1 variable B 2 variable C 8-bit value 0-255 variable value Table 92. ADN 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 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 |
|
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 |