- 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
3 Respuestas
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`
+ 5
Show us your tries first.
0
This is what i have tried