RSSAmplifier

Blog

Exploring the arcane of processors

Exploring the arcane of processors

pmasschelier.github.ioRSS feed ↗2 posts

Latest posts

Write string.h functions using string instructions in asm x86-64

Introduction The C standard library offers a bunch of functions (whose declarations can be found in the string.h header) to manage NULL-terminated strings and arrays. These are some of the most used C functions, often implemented as builtin by the C compiler, as they are crucial to the speed of programs. On the other hand, the x86 architecture contains “string instructions”, aimed at…

Use nasm preprocessor to write clean x86 asm

Why should you use the nasm preprocessor ? Writing assembly is a tedious work. Some of my greatest issues with assembly language programming are the lack of names for local variables the need to write the same assembly code repetitively (for instance function’s prologue an epilogue) and the lack of data structures. These are three good reasons to learn a preprocessor language when you learn…