This gitHub repository is for the Basic-Assembly progarm, as part of the second assignments given in Computer Systems course, Bar Ilan University.
Description • Installing And Executing • Author
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
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