Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/echosingh/computerorganizaton
Basic Assembly Programs
https://github.com/echosingh/computerorganizaton
asmx86 big-little-endian computer-organisation-architechure
Last synced: about 7 hours ago
JSON representation
Basic Assembly Programs
- Host: GitHub
- URL: https://github.com/echosingh/computerorganizaton
- Owner: EchoSingh
- License: mit
- Created: 2024-05-10T06:08:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T17:42:10.000Z (5 months ago)
- Last Synced: 2024-11-05T15:39:59.102Z (about 2 months ago)
- Topics: asmx86, big-little-endian, computer-organisation-architechure
- Language: Assembly
- Homepage:
- Size: 151 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ComputerOrganization 🖥️
This repository contains examples and exercises related to computer organization and low-level programming. It includes examples written in C and x86 Assembly language, demonstrating concepts such as endianness and system calls.
## Contents
- `BigLittleendian.c` - A C program to determine the endianness of the system.
- `first.asm` - An x86 assembly program to print a string using DOS interrupts.### BigLittleendian.c
This C program checks whether the system is using big-endian or little-endian byte order. The program uses a union to store a short integer and a character array, then examines the byte order in memory.
#### Compilation and Execution
To compile and run the `BigLittleendian.c` program:
```bash
gcc BigLittleendian.c -o BigLittleendian
./BigLittleendian
```
## first.asm
This x86 assembly program prints a string to the console using DOS interrupts. It demonstrates the use of the DOS interrupt 21h to print a string and terminate the program.Assembly and Execution
1. To assemble and run the print_string.asm program, you need an assembler like MASM or TASM, and an environment to run DOS programs like DOSBox.
```bash
masm first.asm;
```
2. Link the object file:
```bash
link first.obj;
```
3. Run the executable in DOSBox or a similar DOS environment:
```bash
first.exe
```## License
This repository is licensed under the MIT License. See the [LICENSE](https://github.com/aditya26062003/ComputerOrganizaton/blob/main/LICENSE) file for more information.## Author
Aitya Singh