Skip to content

angadkwatra73/find-max-x86

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimized Maximum Finder in x86 Assembly

This project demonstrates how to find the maximum value in an integer array using NASM x86 (32-bit) Assembly with a C driver program.

🧠 Overview

  • Assembly function: find_max(int* arr, int len)
  • Written in NASM (32-bit)
  • Called from C using extern
  • Demonstrates low-level system interfacing

🛠️ Build Instructions

Make sure you have NASM and GCC with 32-bit support:

sudo apt update
sudo apt install gcc-multilib g++-multilib libc6-dev-i386


nasm -f elf32 max.asm -o max.o
gcc -m32 main.c max.o -o find_max
./find_max

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors