Open main menu

CDOT Wiki β

Changes

Assembly Language

121 bytes added, 17:29, 15 September 2022
no edit summary
=== x86 ===
Here is a "Hello, World!" program written for an x86_64 Linux system using the [https://sourceware.org/binutils/docs/as/ GNU Assembler (gas/as)] syntax (which is the main assembler used in open source projects such as the Linux kernel, as well as the [[SPO600]] course), using Linux [[Syscalls]]:
.text
len = . - msg
Here is a "Hello, World!" similar program in x86 assembler for a Linux 32-bit x86 system, using the [http://www.nasm.us/xdoc/2.11/html/nasmdoc1.html#section-1.1 Nasm] syntax:
section .text
=== ARM (32-bit) ===
This is written in [https://sourceware.org/binutils/docs/as/ GNU Assembler (gas/as)] syntaxusing Linux [[Syscalls]]:
.text
=== ARM (64-bit) - AArch64 ===
This is also in [https://sourceware.org/binutils/docs/as/ GNU Assembler (gas/as)] syntaxusing Linux [[Syscalls]]:
.text
=== 6502 ===
Here is the same "Hello World" program in [[6502]] assembler as used in the [[6502 Emulator]], using the [[6502_Emulator#ROM_Routines|ROM routines]] for output:
define SCINIT $ff81 ; initialize/clear screen