Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Fors vtlmks

View GitHub Profile
View gist:770b9cc0ebb99690928dfd7adb9ee5ab
memcmp Cld
Mov r10, rdi ; save
Mov r11, rsi ; save
Mov rdi, rcx
Mov rsi, rdx
Mov rcx, r8
Mov rdx, r8
Xor eax, eax
Cmpsb
@vtlmks
vtlmks / gist:2a93af9574e5357512501e888e6f5eaa
Created Apr 4, 2019
memcmp in x64 assembler, should return 0 on equal, or +-
View gist:2a93af9574e5357512501e888e6f5eaa
memcmp Cld
Mov r10, rdi ; save
Mov r11, rsi ; save
Mov rdi, rcx
Mov rsi, rdx
Mov rcx, r8
Mov rdx, r8
Xor eax, eax
Cmpsb
@vtlmks
vtlmks / gist:59bda17ab8af92326cdb8600527a57de
Created Aug 4, 2018
sed command to add line to config.gcc..
View gist:59bda17ab8af92326cdb8600527a57de
sed -i '/x86_64-\*-elf\*)/a \\ttmake_file=\"\${tmake_file\} i386/t-x86_64-elf\"' gcc-8.1.0/gcc/config.gcc
View dynamicarray.cpp
#include "dynamicarray.h"
using namespace std;
DynamicArray::DynamicArray() {
DynamicArray::DynamicArray(5);
}
DynamicArray::DynamicArray(int initSize) {
size = initSize;