0% found this document useful (0 votes)
37 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)
37 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

SecurityTube

 Linux  Assembly  Expert  


(SLAE64)  

Training:                                            hNp://[Link]-­‐[Link]    
 
Pentester  Academy:  hNp://[Link]    

Vivek  Ramachandran  
SWSE,  SMFE,  SPSE,  SGDE,  SISE,  SLAE32,64  Course  Instructor  
©[Link]  
Module  1:  64-­‐Bit  ASM  on  Linux  

20.  Procedures  

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

hNp://SecurityTube-­‐[Link]    

©[Link]  
Procedure  

•  Set  of  operaVons  grouped  together  

•  Called  oWen  from  different  places  in  the  code  

•  CALL  Procedure_Name  

•  In  NASM  procedures  are  defined  using  Labels  

©[Link]  
Format  of  a  Procedure  

ProcedureName:    
 
 …  code…  
 …  code  …  
 …  code  …  
 RET  
 
 
©[Link]  
Arguments  to  a  Procedure  

•  Passed  via  Registers  

•  Passed  on  the  stack  

•  Passed  as  data  structures  in  memory  


referenced  by  registers  /  or  on  stack  

©[Link]  
Pentester  Academy  

©[Link]  

You might also like