Find Jobs
Hire Freelancers

ARM Assembly Code Project Simple

$10-30 USD

Cancelado
Publicado hace alrededor de 7 años

$10-30 USD

Pagado a la entrega
I need this project done in 24 hours, by 4/19/17 at 6:00pm Pacific Time. Create a program named "sort.s" that does the following: reads integers from a file named "[login to view URL]". (There will no more than 8192 integers in the file) Sorts all the numbers Prints the sorted integers out, one per line, to a file named "[login to view URL]" You must implement and use the following functions: int read(int filenamelocation, int arrayaddress, int arraysize) void sort(int arrayaddress, int itemcount) int findsmallest(int arrayaddress, int start, int end) void swap(int arrayaddress, int a, int b) void print(int filenamelocation, int arrayaddress, int itemcount) Here are those functions in java but they need to be changed to ARM assembly for the project: void sort(int [] array, int itemcount) { int pos; int smallpos; pos = 0; while (pos < itemcount-1) { smallpos = findsmallest(array, pos, itemcount); swap(array, pos, smallpos); pos = pos + 1; } } int findsmallest(int [] array, int first, int itemcount) { int smallest int index; smallest index=1; while (index < itemcount) { if (array[index] < array[smallest]) smallest = index; index = index + 1; } return smallest; } void swap(int [] array, int first, int second) { int temp = array[first]; array[first] = array[second]; array[second] = temp; } Or super sneaky using the power of logic and math without a third variable or register... void swap(int [] array, int first, int second) { array[first] = array[first] ^ array[second]; array[second] = array[first] ^ array[second]; array[first] = array[first] ^ array[second]; }
ID del proyecto: 13769433

Información sobre el proyecto

3 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
3 freelancers están ofertando un promedio de $112 USD por este trabajo
Avatar del usuario
A proposal has not yet been provided
$55 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
burbank, United States
5,0
2
Forma de pago verificada
Miembro desde abr 18, 2017

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.