Skip to content

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

Notifications You must be signed in to change notification settings

DrkWithT/GNU_ASM_Samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published