Skip to content

Instantly share code, notes, and snippets.

🎅

Guy Levin guywhataguy

🎅
Block or report user

Report or block guywhataguy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@guywhataguy
guywhataguy / fibonacci.asm
Created Jul 31, 2019
calculate fibonacci numbers
View fibonacci.asm
; Shortest code for finding fibonacci numbers
; setup
mov rax, 0
mov rdx, 1
; for example find the 8th number in the sequence
mov rcx, 8
; core
@guywhataguy
guywhataguy / hellow_world.asm
Created Jul 31, 2019
simple hello world in assembly
View hellow_world.asm
; HELLO WORLD in assembly
global _start
section .text
_start:
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
@guywhataguy
guywhataguy / print_main_arguments.c
Created Jun 11, 2019
Prints all arguments passed to main. Always returns successful exit code
View print_main_arguments.c
/*
Guy Levin (@va_start)
prints all arguments passed to main
always returns successful exit code
*/
#include <stdio.h>
#include <stdlib.h>
View UninitializedVariables.c
#include <stdio.h>
#include <stdlib.h>
typedef char bool;
#define TRUE 1
#define FALSE 0
void func(bool initialize)
{
int coolvar;
You can’t perform that action at this time.