.model small
.stack
.data
m db 'the no is odd $'
m1 db 'the no is even $'
a db 04h
b db 02h
.code
mov ax,@data
mov ds,ax
mov ah,0
mov al,a
mov bl,b
div bl
cmp ah,00h
je l1
mov dx,offset m
jmp l
l1:
mov dx,offset m1
jmp l
l:
mov ah,09
int 21h
mov ah,4ch
int 21h
end
To find the square root of a given number using the 8086 microprocessor, you can implement the Newton-Raphson method in assembly language. First, load the number into a register, then set an initial guess for the square root. Use the iterative formula guess = (guess + number / guess) / 2 until the guess converges to a stable value. Finally, store or display the result.
if the gcd and lcm are given and one of the numbers are also given,multiply the gcd and lcm and divide them by the given number
Without knowing what the numbers are, I would suggest taking the mean of the given numbers.
decimal
None of them is, since none are given.
You add the three numbers, then divide the result by 3.
8086 assembly language program to check wether given number is perfect or not
8 bit input is given to Intel 8085 microprocessor.
The native Assembly language of the given platform. For example it would be stupid to write anything in Motorola 68000 Assembly for Intel x86 platform: it wouldn't work.
An assembly to binary converter works by translating assembly language instructions into binary code, which is the language that computers understand. Each assembly instruction is converted into a series of 1s and 0s that represent specific operations and data. This conversion process allows the computer to execute the instructions given in assembly language.
To find the square root of a given number using the 8086 microprocessor, you can implement the Newton-Raphson method in assembly language. First, load the number into a register, then set an initial guess for the square root. Use the iterative formula guess = (guess + number / guess) / 2 until the guess converges to a stable value. Finally, store or display the result.
Suppose we give a 8-bit instruction ADD B to the microprocessor then this instruction is not at all understood by microprocessor as it only accepts binary inputs so first of all it stores the instruction in the INSTRUCTION REGISTOR then it decodes this instruction ADD B to its suitable binary code 80H in the INSTRUCTION DECODER.. after converting to 80H then the microprocessor understands that .. yes i have to add the content of the resistor B with that of A(accumulator) and store the result in the accumulator A this is a small example how microprocessor operates facing the instructions
Instructions are a given way of following things. They are given in a specific order so the outcome comes out as it was supposed to be in the beginning.
The '8085' in the 8085 microprocessor is the designation given to the microprocessor by Intel. The '5' means it is a single power supply (5 volt) version of the 8080, with enhancements.
Machine language is the actual bits used to control the processor in the computer, usually viewed as a sequence of hexadecimal numbers (typically bytes). The processor reads these bits in from program memory, and the bits represent "instructions" as to what to do next.Thus machine language provides a way of entering instructions into a computer (whether through switches, punched tape, or a binary file).Assembly language is a more human readable view of machine language. Instead of representing the machine language as numbers, the instructions and registers are given names (typically abbreviated words, or mnemonics, eg ld means "load"). Unlike a high level language, assembler is very close to the machine language. The main abstractions (apart from the mnemonics) are the use of labels instead of fixed memory addresses, and comments.An assembly language program (ie a text file) is translated to machine language by an assembler. A disassemblerperforms the reverse function (although the comments and the names of labels will have been discarded in the assembler process).machine language faster than assembly language even than assembly language depend upon machine language
No numbers are given!
mnemonics are nothing but the symbols used to indicate a particular meaning in assembly language. They are used to make programming easier for programmers.For example BAL is a mnemonic for "branch-and-link."