Skip to content

Basic Assembly program, as part of the second assignment in Computer System course, Bar Ilan University.

Notifications You must be signed in to change notification settings

TalMizrahii/Basic-Assembly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation


pStringMem

This gitHub repository is for the Basic-Assembly progarm, as part of the second assignments given in Computer Systems course, Bar Ilan University.

DescriptionInstalling And ExecutingAuthor

Description

This is my first assembly project for the Computer Systems course at Bar Ilan university.

The project contains four parts:

  • Print your id number (a 9-digits decimal number).
  • Take the second number in your id number. If its even, divide the id number by three and print the reminder. Otherwise, multiply th id number by three and print it.
  • Xor the first and third bytes in id. If the unsigned result is greater then 127, print 'True', otherwise, print 'False'.
  • count the number of 1's in the fourth byte of the id number and print it.

For example, if id is 123456789, the output of the program is:

123456789

370370367

False

3

Installing And Executing

To clone and run this application, you'll need to use Git and the gcc compiler. From your command line:

# Clone this repository.
$ git clone https://github.com/TalMizrahii/Basic-Assembly

# Go into the repository.
$ cd Basic-Assembly

# Compile the program option 1.
$ gcc main.s

# Compile the program option 2.
$ gcc -no-pie main.s

# Run the program (Linux).
$ ./a.out
# Run the program (Windows).
$ a.out

Author

About

Basic Assembly program, as part of the second assignment in Computer System course, Bar Ilan University.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published