Command line used to create assembly language program for addition and subtraction
Answers
Answer:
Assembly Language Program
Explanation:
A personal computer has a microprocessor that manages the computer's arithmetical, logical, and control activities.
Each family of processors has its own set of instructions for handling various operations such as getting input from keyboard, displaying information on screen and performing various other jobs. These set of instructions are called 'machine language instructions'.
A processor understands only machine language instructions, which are strings of 1's and 0's. However, machine language is too obscure and complex for using in software development. So, the low-level assembly language is designed for a specific family of processors that represents various instructions in symbolic code and a more understandable form.
Assembly Language Program
Assembly language is a low level programming language for computer, microprocessor and micro controllers, and other programmable devices.
It consist of 2 level
- simple codes
- line of code is directly to the machine can be understood by microprocessor.
ADD Instruction
It will add a source operand to a destination operand of the same size
example
.data
var1 DWORD 10000h
var2 DWORD 20000h
.code
mov earx,var1 ;EAX= 10000h
add eax,var2 ;Eax =30000h
SUB Instruction
Subtract a source operand from destination operand
example
.data
var1 DWORD 30000h
Var2 DWORD 10000h
.code
move eax var1 ;EAX=30000h
sub ear,var2 ;EAX=20000h
To Learn More...
- brainly.in/question/14715121
- brainly.in/question/8762591