Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```