Find Jobs
Hire Freelancers

MARIE Assembly

$10-30 CAD

Cancelado
Publicado hace casi 7 años

$10-30 CAD

Pagado a la entrega
First, write a subroutine that will sum the numbers (1+2+3+4+...+N), where the user enters N. Please use the instructions JNS and JumpI for the subroutine and return the result on a memory address. Then write another subroutine that will multiply two numbers using repeated addition. For example, to multiply 20 and 5, you would need to calculate (20+20+20+20+20). Please use the instructions JNS and JumpI for the subroutine and return the result on a memory address. Then, write a MARIE assembly program that will calculate (N! = 1 x 2 x 3 x 4 … x N), calling the subroutine that was created in the task above. Finally, consider the range of inputs and outputs your program and subroutines can work with within the MARIE architecture. Please see the pseudocode below: Input N Call subroutine to calculate 1+2+3+4+…+N Output result1 Call subroutine to calculate 1 x 2 x 3 x 4 x … x N Output result2 You are asked to submit a single Zip file (.zip) containing the MARIE Assembly .mas file that corresponds to the above tasks. Your .mas file needs to be able to compile on the MARIE Assembler Code Editor and subsequently run on the MARIE Simulator. Your .mas file is expected to contain comments that explain your code.
ID del proyecto: 13971391

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 7 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de UKRAINE
Kyiv, Ukraine
5,0
2
Miembro desde mar 22, 2016

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.