Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Examples

Examples follow no specific order, and it's up to the user to find the suitable learning order based on the descriptions.

hello_world.asm

Simple example that prints "Hello, World!" to the screen

math_operations.asm

Simple example showing the main math operations

stack_example.asm

Example of the different ways to push and pop to the stack

array.asm

Example on how to acess array values from data section

is_even.asm

Example on how to read number input from the terminal and check if its even or odd

print_function.asm

Example on how to refactor the whole syscall process in to a function for convenience

table.asm

Example on how to make a "table" that returns specific values based on its input

bitwise.asm

Example on the bitwise operations, including printing values and line breaks;

loop_test.asm

Simple example on the different loop types you can do with the operations included

push_call.asm

Example on how do do "function" calls, using the call operator, and pushing and popping from the stack

table_data_section.asm

Same example as table.asm, except using the .data section to store values

fizzbuzz.asm

FizzBuzz example (Loop from 1->100, where: multiples of 3 = Fizz, multiples of 5 = Buzz, multiples of 3 and 5 = FizzBuzz, otherwise just print the number)

math_function_call.asm

Example on how to make functions for all of the basic math operations

readme_example.asm

The example contained in the README.md of the project

three.asm

Example showing how far off from 3 is your number

write_overflow.asm

Showing having a missmatching strlen as buffer size to write allows you to write data thats after the end of the string

getpid.asm

Showing how to get own process id, and using the kill signal on it.

open_write_close.asm

Example showing open(), write() and close() syscalls