answersLogoWhite

0

.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

User Avatar

Wiki User

∙ 14y ago
User Avatar

What else can I help you with?

Related Questions

How do you find average of three numbers in 8085 microprocessor code in a given address and data?

You add the three numbers, then divide the result by 3.


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


How many bit input is given to a microprocessor?

8 bit input is given to Intel 8085 microprocessor.


What assembly language is the best for making an OS?

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.


Write a Program to find square root of a given number using 8086 microprocessor?

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.


How does an assembly to binary converter 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.


How does the microprocessor work?

Collections of instructions known as a program are written in assembly language gets stored in the instruction register. Processor reads the instruction byte by byte and converts it into machine language instruction(opcode) and performs the operation specified by the opcode on the given data and executes it.


What is the instruction?

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.


What do '8085' in 8085 Microprocessor signify?

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.


What is difference between machine language and assembly language?

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


How different languages do related to assembly language Is assembly language portable?

Assembly language is closely related to machine code and is specific to a particular computer architecture, meaning it is not portable across different hardware platforms. Each assembly language corresponds to a specific set of machine instructions for a given CPU, making it low-level and hardware-dependent. Higher-level programming languages, such as C or Python, are designed to be more portable, allowing the same code to run on multiple platforms with minimal modification. In contrast, assembly language requires rewriting for different architectures due to its direct relationship with the underlying hardware.


What are the Examples of mnemonics used in assembly language?

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."