Skip to content

jaebaek/Binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binary

Sample codes for assembly, linker and attack demos This is a repo for simple demo usage of GNU assembly and NASM (for entry-level student).

Rule

  • *.asm is NASM source code file
  • *.s is GNU Assembly (i.e., GAS) source code file
  • *.nasm.o is NASM object file
  • *.gas.o is GAS object file
  • *.nasm is NASM executable file
  • *.gas is GAS executable file

Calling an assembly function in C source

  • See as_and_c
  • I briefly implemented how to call ASM function in C file, and how to call C function in ASM file.

In-line assembly in C source

  • See as_in_c
  • I briefly implemented how to get values of registers into a local variable.

About

Sample codes for assembly, linker and attack demos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published