DrkWithT / GNU_ASM_Samples

Contains sample linux x64 assembly. Has a decimal to hex converter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example GAS Programs

By: Derek Tan / DrkWithT at GitHub

Requirements:

  • Editor: any one that works on Unix / Unix-like systems!
  • VCS: Git
  • System: Linux distro, MacOS, BSD variant, etc.

Summary:

This repo contains sample programs written in GNU Assembly. The list below gives brief information on the code and its usage. Here, I assume that the reader is new to using GNU make with GNU assembly code.

Programs:

  1. test1.s: Tells whether a hardcoded 32-bit integer is greater than 10 or not.
  2. write_hex.s: Prints a hardcoded word value in hex representation.
  3. dec_to_hex.s: Gets a 4 digit decimal number and then prints the hex representation.

Assembling:

  • The command to build a single, one file program is make ./bin/<source file name>.out.
  • The command to clear out old executables is make clean.

About

Contains sample linux x64 assembly. Has a decimal to hex converter.


Languages

Language:Assembly 93.1%Language:Makefile 6.9%