Skip to content
OrionHPublic

About

Timer written in nasm assembly

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timer

image

This is a countdown timer written in NASM x86 assembly for linux machines. It can also be used on Windows using WSL.

NASM is the required version of assembly becuase of how the macros are defined in helpers.inc

How to use

Requirements

  • nasm - for assembly
  • ddd - not technically required but a great debugger
  • gcc-multilib - for debugging

Assemble

nasm -gdwarf -f elf64 timer.asm -o timer.o

-gdwarf sets debugging symbols to be enabled in the dwarf format vs the stabs format. After trying both, I found no difference for my needs. The main part is that -g is enabled.

Can also be written as -g -F dwarf

-f elf64 sets the linking format

-o is the output object file

Link

ld timer.o -o timer

Run

timer <name> 00 00 00

For example:

This timer to bake a pizza for 1 hour, 5 minutes, and 30 seconds.

The name is an optional argument

timer Pizza 1 5 30

Resources

There are a lot of resources out there for assembly help, but with all the different syntax and types it can be tricky. Here are a couple of resources that can help if you're getting into it.

About

Timer written in nasm assembly

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages