Code Monkey home page Code Monkey logo

cso's Introduction

Assembly Language Programming

Sneha Raghava Raju

Some assignment problems done for a Computer Systems Organization course. The assignment consisted of programming questions to be done in the x86 assembly language.

  • Q1D - Sort a list of 32 integers using Odd-Even Sort.

  • Q2A - Perform Sequential Sort on a list of 32 signed integers . Find the location of a key X, return -1 if X does not belong to the list. Report the number of iterations taken to successfully/unsuccessfully find X.

  • Q3B - Given a Matrix M with 16 bit values in memory. (M has 8 rows and 8 columns). Rotate the matrix by 90 degrees in the clockwise direction without using any extra memory.

  • Q4B - Given a character array C of length 32. Count the frequency of each capital letter 'A' to 'Z' appearing in C. Report 0 in case an alphabet does not appear in C.

  • Q5A - Given two 16 bit signed integers A and B. Find the hamming distance between them and store the result in another integer C.

Instructions to run the programs

  • Q1D
gcc -c Q1D.s 
gcc Q1D.o
./a.out
  • Q2A
gcc -c Q2A.s 
gcc Q2A.o
./a.out
  • Q3B
gcc Q3B.c Q3B.s 
./a.out
  • Q4B
gcc Q4B.c Q4B.s
./a.out
  • Q5A
gcc Q5A.c Q5A.s
./a.out

cso's People

Contributors

sneha-223 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.