Yes, as long as one of them is the accumulator...
ADD BX
... adds BX to AX and leaves the result in AX.
Registers are memory locations on the microprocessor itself (not in main memory). In RISC architectures generally most operations (add, multiply, etc) must take there input from registers and write their output to a register. Since registers are located directly on the microprocessor, they represent the fastest form of memory in the computer, and also the type of memory available in the least quantity.
HTML : Hypertext Markup Language is a scripting language used to write websites. Assembly language is a programming language (aka ASM). It uses memory registers like EAX, ECX to hold values and commands like JMP, ADD, MOV to alter those values. Assembly language is very close to machine language and very abstract to the untrained eye. In short, they are nothing a like, and share no similarities.
Machine language is a stream of bytes interpreted by the CPU to perform operations on the computer. Reading machine language directly requires knowledge of or access to a list of "opcodes" (the numeric value associated with each instruction) in the program. Assembly language is a human-readable translation of machine language with additional features such as mapping of symbols to actual memory addresses or registers. People who use assembly language ultimately also become proficient in understanding machine language.For example, in the x86 architecture, this machine language:B8 05 00is represented in assembly language as: mov ax, 5It is clear for someone who understands the assembly language that the instruction will move the immediate value "5" into the register "ax."
Assembly language programs are the Low level programs. We write Assembly Language program in basically 8085 and 8086 microprocessors.We can have several registers to do opreations with. Accumulator is one most important Register in a assembly program.We use several instructions like..Arithmetic:INR - Increment AccumulatorADD B - Add Content of Reg. B with AccumulatorSUB, etc.Logical:AND - Bitwise ANDJump Instriction:JZ label - Jump to label if ZERO flaggedJC Label - Jump on CarryEtc..
an assembly language is a computer-oriented language with instruction that are in one-to-one correspondence with machine instruction. In assembly language a symbol is used for each machine instruction, which is subsequently translated into machine language.
Assembly is signficantly shorter and easier to remember than the equivilant machine instructions. Assembly instructions are human readable characters, for which a direct translation exists to the binary machine code instructions. Pseudo example: add <- assembly instruction 1010101010 <- machine instruction
Assembly language programs are the Low level programs. We write Assembly Language program in basically 8085 and 8086 microprocessors.We can have several registers to do opreations with. Accumulator is one most important Register in a assembly program.We use several instructions like..Arithmetic:INR - Increment AccumulatorADD B - Add Content of Reg. B with AccumulatorSUB, etc.Logical:AND - Bitwise ANDJump Instriction:JZ label - Jump to label if ZERO flaggedJC Label - Jump on CarryEtc..Example:MVI B, 06 //Load Register B with the Hex value 06MOV A, B //Move the value in B to the Accumulator or register AMVI C, 07 //Load the Register C with the second number 07ADD C //Add the content of the Accumulator to the Register CSTA 8200 //Store the output at a memory location e.g. 8200HLT //Stop the program execution
The assembly languages provide human-readable mnemonics, one for each machine instruction. Most assembly language instructions have similarities to words from the English language (e.g. ADD, MOVE, LOAD). However, it is possible that assembly languages are defined in resemblance to other human languages, or none at all. For example, processors designed in and predominantly used in countries with a different language and script might define assembly instructions more familiar and easier to use by its target audience. For example, it is possible that Chinese processors define assembly language instructions without resemblance to English.
These days very few programs are written in assembly language. Some parts of operating system kernels are written in assembly language usually because they need to perform some function very specific to a particular microprocessor architecture. Other programs written in assembly language include programs written for very cheap microprocessors in embedded systems. Such systems have very little resources and do not run operating system and compilers. Finally some specific parts of applications programs may be written in assembly language for performance optimization, but examples of those today are quite rare indeed.
Registers are the switches that can be found next to the keys on the right hand side of the accordion. There are usually anywhere from 3 to 11 registers on an accordion. By switching registers, it changes the reeds that are used and thus changes the sound. For example, one register might sound like a clarinet and another might sound like a bassoon. Or you can have registers that are combinations of different registers. All of these produce different sounds and add more variety to the accordion.
ASCII (apex)
8 bit registers cannot be used as 16 bit registers. The reverse works, however, as the 16 bit general purpose registers of the 8086 and 8088 can be used as pairs of 8 bit registers. AX is divided into AH (high 8 bits) and AL (low 8 bits), and BX, CX, and DX are similarly divided.Operations on 16 bit and operations on 8 bit registers are similar. So you can do add ah, bl, just as you could do add ax, bx.