Computer Science, asked by sudhipanda2398, 1 year ago

Command line used to create assembly language program for addition and subtraction

Answers

Answered by Anonymous
0

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.

Answered by stefangonzalez246
4

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

Similar questions