





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
MPMC project work including add sub of two 8 bit numbers
Typology: Study Guides, Projects, Research
1 / 9
This page cannot be seen from the preview
Don't miss anything!
org 100 mov ax,08h mov bx,06h add ax,bx sub ax,bx mul bx div bx
org 100h MOV AX,00H MOV ax, mov bx ,ax cmp ax, je done fact: dec bx mul bx jnz fact done: mov ah, 4ch int 21h
arr: dB 15h,0h,25h,8h,10h,5h,9h,15h,86h,15h ;b dW 0Ah ;c dW 09h .code MOV AX,arr MOV DS,AX MOV CL,0Ah BACK: LEA SI,arr MOV BH,09h SWAP: MOV AX,[SI] MOV BL,[SI+1] CMP AL,BL JC NOSWAP MOV [SI],BL MOV [SI+1],AL NOSWAP: INC SI DEC BH JNZ SWAP MOV AX,4CH
s1 db 10,20,30,40,50,60,70,80, s2 db 10dup(0) data ends mov si , 500 mov di, 600 mov ax, mov ds,ax mov es,ax mov cl,[si] mov ch, inc si cld rep movsb Hlt
.code MOV AX, 0000H MOV BX, 0000H MOV CX, 0000H MOV AL, MOV BL,01H ROOT: CMP AL,00H JZ ZERO SUB AL,BL AAS