"assembly language program to separate even and odd numbers in 8086" Code Answer's
You're definitely familiar with the best coding language Assembly that developers use to develop their projects and they get all their queries like "assembly language program to separate even and odd numbers in 8086" answered properly. Developers are finding an appropriate answer about assembly language program to separate even and odd numbers in 8086 related to the Assembly coding language. By visiting this online portal developers get answers concerning Assembly codes question like assembly language program to separate even and odd numbers in 8086. Enter your desired code related query in the search bar and get every piece of information about Assembly code related question on assembly language program to separate even and odd numbers in 8086.
assembly language program to separate even and odd numbers in 8086
.model small
.data
arr1 db 1,2,3,1,3,5,6,3,4,5
OddArr db 10 dup(?)
EvenArr db 10 dup(?)
OddAdd db 0
EvenAdd db 0
.code
mov ax,@data
mov ds,ax
LEA BX,arr1
LEA SI,OddArr
LEA DI,EvenArr
mov cx,10
mov dh,02
L1:
mov ah,00
mov al,[BX]
mov dl,al
div dh
cmp ah,00
je EVEN1
mov [DI],dl
add OddAdd,dl
INC DI
INC BX
Loop L1
jmp CAL
EVEN1:
mov [SI],dl
add EvenAdd,dl
INC SI
INC BX
Loop L1
CAL:
mov ax,0000
mov bx,0000
mov al,OddAdd
mov bl,EvenAdd
mov ax,4C00h
int 21h
end
Source: www.codepoc.io
All those coders who are working on the Assembly based application and are stuck on assembly language program to separate even and odd numbers in 8086 can get a collection of related answers to their query. Programmers need to enter their query on assembly language program to separate even and odd numbers in 8086 related to Assembly code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about assembly language program to separate even and odd numbers in 8086 for the programmers working on Assembly code while coding their module. Coders are also allowed to rectify already present answers of assembly language program to separate even and odd numbers in 8086 while working on the Assembly language code. Developers can add up suggestions if they deem fit any other answer relating to "assembly language program to separate even and odd numbers in 8086". Visit this developer's friendly online web community, CodeProZone, and get your queries like assembly language program to separate even and odd numbers in 8086 resolved professionally and stay updated to the latest Assembly updates.