answersLogoWhite

0

What else can I help you with?

Related Questions

Program in assembly language for factorial of a given number?

Certainly! Here is a simple program in x86 assembly language to calculate the factorial of a given number: section .data number db 5 result dw 1 section .text global _start _start: mov cx, 1 mov ax, 1 calculate_factorial: cmp cx, byte[number] jg end_calculation imul ax, cx inc cx jmp calculate_factorial end_calculation: mov word[result], ax ; Add code here to display or store the result ; Exit the program mov eax, 1 xor ebx, ebx int 0x80 This program initializes the number to calculate the factorial of (in this case, 5) and then iterates through a loop to calculate the factorial using the imul instruction. The result is stored in the result variable. You would need to add code to display or store the result as needed.


Assembly language program to find the largest of series of numbers in 8051?

include irvine32.inc.dataistno db "enter ist no",02nd db "enter second no",0lagest db "largest no",0.codemain procmov edx,offset istnocall writestringcall readintcall crlfmov bx,axmov edx,offset 2ndcall writestringcall readintcall crlfjg looploop;mov edx,offset lagestcall writestringcall writeintmain endpend mainassembly program to find the greatest of between two numbers is as follows:ProgramMVI B, 30HMVI C, 40HMOV A, BCMP CJZ EQUJC GRTOUT PORT1HLTEQU: MVI A, 01HOUT PORT1HLTGRT: MOV A, COUT PORT1HLT


Write a program to compute factorial of a number on 8051?

FOR NO'S TILL 8 ONLY Example for Number 4 4!=4*3*2*1 which is = 24 MOV R1,#04 MOV R0,#04 MOV A,R0 CALL:DEC R0 MOV F0,R0 MUL AB DJNZ R1,CALL LCALL 0003 SHARAD KOTHARKAR


Write a program in 8086 assembly language to generate the factorial of given number?

Aim: - To write an assembly language program to find sum of cubes of given 'n' numbers.123456789MOV CL, NUMMOV SUM, 00L1: MOV AL, CLMUL ALMUL CLADD AL, SUMMOV SUM, ALLOOP L1ENDResult: Sum of cubes of first 'n' natural numbers is obtained.