answersLogoWhite

0


Best Answer

.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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Find given numbers odd or even in 8085 microprocessor assembly language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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


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.


How many bit input is given to a microprocessor?

8 bit input is given to Intel 8085 microprocessor.


How does the microprocessor work?

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


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


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


What are the two given numbers of 56?

No numbers are given!


What was the name given to the first computer (machine) language?

ASCII (apex)


What circumstances does it still make to program in machine level and assembly level language?

Only when a high-level language cannot create the desired machine code. This is rarely necessary given that C++ (for example) is specifically designed so that the need to write code in a lower-level language (such as C or assembly) is extremely rare. A typical example is when a new machine architecture is conceived for which there (currently) would be no high-level language implementations available. Given the complexities involved in creating (or modifying) high-level compilers to cater for a new architecture, the manufacturer will initially provide a low-level assembler which is obviously much simpler to implement given the much reduced abstraction involved. Until higher level languages begin to emerge, the assembly language is the only way to program the new architecture.