The x86 way of calling foreign functions is a bit messy and difficult to work with. In this new project we'll be coding our very own calling convention in the form of a library.
The ultimate goal is to be able to call Assembly functions/subroutines directly from your C code, and being able to handle function parameters and return values in an conveniant way.
This is ep01 of the series and we'll be programming both C and Assembly.
Become a member and get several benefits, check out:
https://www.youtube.com/channel/UC6Q8NDGqQ2eJ7QXX693ikdw/join
Table of Contents
00:00:00 Introduction
00:15:51 Setting up the project
00:26:40 The Assembly part
01:17:00 Troubleshooting structs
02:29:50 First 🍒
02:56:30 The C part
04:07:05 Second 🍒
04:45:00 Troubleshooting instructions
04:58:40 Third 🍒