Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vonderklaas/assembly-greeting
This *Assembly* code can be assembled by a tool such as NASM into machine code that can be executed directly by the CPU. It prints a message to the console and then exits.
https://github.com/vonderklaas/assembly-greeting
assembler assembly compiler macos nasm x86-64
Last synced: 9 days ago
JSON representation
This *Assembly* code can be assembled by a tool such as NASM into machine code that can be executed directly by the CPU. It prints a message to the console and then exits.
- Host: GitHub
- URL: https://github.com/vonderklaas/assembly-greeting
- Owner: vonderklaas
- Created: 2023-04-30T13:24:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-08T16:39:57.000Z (over 1 year ago)
- Last Synced: 2024-11-10T10:37:13.458Z (2 months ago)
- Topics: assembler, assembly, compiler, macos, nasm, x86-64
- Language: Assembly
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Assembly Greeting
This *Assembly* code can be assembled by a tool such as NASM into machine code that can be executed directly by the CPU. It prints a message to the console and then exits.
### Quick Start
Before you begin, ensure that you have installed the NASM package on your MacOS system.
To check if NASM is installed, enter the following command in a terminal```
nasm -v
```To compile the Assembly file into hexadecimal representation, use the following command
```
nasm -f macho64 [filename].asm
```To check the contents of the compiled file, use the following command
```
hexdump -C [filename].o
```To link the compiled file and create an executable file, use the following command
```
ld -lSystem [filename].o
```Finally, to run the executable, enter the following command
```
./[filename].out
```