0% found this document useful (0 votes)
30 views6 pages

019 Procedures

The document discusses procedures in 64-bit assembly programming on Linux. It covers defining procedures using labels in NASM, the format of a procedure including code blocks and returning, and different ways of passing arguments to procedures like registers, stack, and memory locations.

Uploaded by

MotivatioNet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

019 Procedures

The document discusses procedures in 64-bit assembly programming on Linux. It covers defining procedures using labels in NASM, the format of a procedure including code blocks and returning, and different ways of passing arguments to procedures like registers, stack, and memory locations.

Uploaded by

MotivatioNet
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

SecurityTube

 Linux  Assembly  Expert  


(SLAE64)  

Training:                                            hNp://www.SecurityTube-­‐Training.com    
 
Pentester  Academy:  hNp://www.PentesterAcademy.com    

Vivek  Ramachandran  
SWSE,  SMFE,  SPSE,  SGDE,  SISE,  SLAE32,64  Course  Instructor  
©SecurityTube.net  
Module  1:  64-­‐Bit  ASM  on  Linux  

20.  Procedures  

Vivek  Ramachandran  
SWSE,  SMFE,  SPSE,  SGDE,  SISE,  SLAE64,  SLAE32  Course  Instructor  

hNp://SecurityTube-­‐Training.com    

©SecurityTube.net  
Procedure  

•  Set  of  operaVons  grouped  together  

•  Called  oWen  from  different  places  in  the  code  

•  CALL  Procedure_Name  

•  In  NASM  procedures  are  defined  using  Labels  

©SecurityTube.net  
Format  of  a  Procedure  

ProcedureName:    
 
 …  code…  
 …  code  …  
 …  code  …  
 RET  
 
 
©SecurityTube.net  
Arguments  to  a  Procedure  

•  Passed  via  Registers  

•  Passed  on  the  stack  

•  Passed  as  data  structures  in  memory  


referenced  by  registers  /  or  on  stack  

©SecurityTube.net  
Pentester  Academy  

©SecurityTube.net  

You might also like