Skip to content

A simple example of using void pointers and struct objects.

Notifications You must be signed in to change notification settings

inversederivative/VoidPtrFun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Void Pointer Fun


Introduction

This is an exercise in creating struct objects, passing them to a function as a void pointer, and then casting the incoming void pointer (inside the function) as the struct object.


NASM Source

I've also written some NASM code, to reflect the C code, with detailed comments. It also serves as an example of how to assemble assembly source, in a CMake environment, when the Main Subroutine is in the Assembly source, not the cpp or c version.


About

A simple example of using void pointers and struct objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published