- 1

Assembler program to separate even and prime numbers using subroutines

I need a assembler program to separate even and prime number using register indirect and subroutinrs

18th Apr 2020, 10:50 AM
Binsha S
3 Answers
0
model small .data num db 0,13,4,7,8,9,14,15,2,10,19,20 even dw 20 dup ? prime dw 20 dup ? .code mov ax, @ data mov ds, ax LEA BX,num LEA SI, even LEA DI, prime mov dh,02 L1: mov ah,00 mov al, [BX] mov dl, al div dh cmp ah,00 JE EVEN EVEN: mov [SI], dl INC SI INC BX LOOP L1`
18th Apr 2020, 11:38 AM
Binsha S
+ 5
Show us your tries first.
18th Apr 2020, 11:02 AM
M Tamim
M Tamim - avatar
0
This is what i have tried
18th Apr 2020, 11:40 AM
Binsha S