SlideShare a Scribd company logo
1 of 19
AISWARYA. T.V.
ROLLNO :54
S4 BIOMEDICAL
STACK
MACROS
PROCEDURES
CONTENTS
INTERRUPT SERVICE
ROUTINES
STACKS
STACK is a LAST- INPUT -FIRST -OUTPUT read/write memory
STACKS is a block of memory that may be used for temporarily storing the
contents of the registers inside the CPU.
The stack is a block of memory locations which is accessed using the
STACK POINTER and STACK SEGMENT registers.
In other words ,it is a a top-bottom data structure whose elements are accessed using
the SP and SS registers.
As we go on storing storing the data words into the stack, the pointer goes on
decrementing and on other hand, pointer goes on incrementing as we go on retriving
the data.
The data in the stack register again may be transferred to stack register whenever is
required by the CPU.
PUSH : The process of
storing the data in the
stack is called ’pushing
into’ the stack .
‘
PULL :The process of
transferring of data from
stack to the CPU is called
‘POPPING OFF’
INTERRUPT &INTERRUPT SERVICE
ROUTINES
INTERRUPT SERVICE ROUTINES
MEANING OF INTERRUPT IS TO MAKE A BREAK IN THE SEQUENCE OF
OPERATIONS.
Interrupt Service Routinees (ISR) are the programs to be executed by
interrupting the main program execution of CPU ,after an interrupt request
appears.
After executing ISR, the control is transferred back again to the main program
which was being executed at the time of interruption .
Definition of the macro
A macro is a group of repetitive instructions in a program which are
codified only once and can be used as many times as necessary.
The main difference between a macro and a procedure is that in the macro the
passage of parameters is possible and in the procedure it is not, this is only
applicable for the TASM - there are other programming languages which do allow it.
At the moment the macro is executed each parameter is substituted by the name or
value specified at the time of the call.
We can say then that a procedure is an extension of a determined
program,while the macro is a module with specific functions which can be used by
different programs.Another difference between a macro and a procedure is the way of
calling each one, to call a procedure the use of a directive is required, on the other
hand the call of macros is done as if it were an assembler instruction.
MACROS
.avoid repetitious SAS code
.create generalisable and flexible SAS code
.pass information from one part of a SAS job to another
.conditionally execute data steps and PROCs
.dynamically create code at execution time
seminar 4 sem
seminar 4 sem
seminar 4 sem

More Related Content

What's hot (7)

Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
 
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip ParallelismSummary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
Summary of Simultaneous Multithreading: Maximizing On-Chip Parallelism
 
Flynns classification
Flynns classificationFlynns classification
Flynns classification
 
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
 
Multiple processor (ppt 2010)
Multiple processor (ppt 2010)Multiple processor (ppt 2010)
Multiple processor (ppt 2010)
 
Multithreading computer architecture
 Multithreading computer architecture  Multithreading computer architecture
Multithreading computer architecture
 
Computer architecture multi processor
Computer architecture multi processorComputer architecture multi processor
Computer architecture multi processor
 

Similar to seminar 4 sem

Crussoe proc
Crussoe procCrussoe proc
Crussoe proc
tyadi
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1
Basel Mansour
 

Similar to seminar 4 sem (20)

Various type of register
Various type of registerVarious type of register
Various type of register
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
Chapter 5 notes
Chapter 5 notesChapter 5 notes
Chapter 5 notes
 
Micro overview
Micro overviewMicro overview
Micro overview
 
Crussoe proc
Crussoe procCrussoe proc
Crussoe proc
 
Intel 80286
Intel 80286Intel 80286
Intel 80286
 
Buffer overflow attacks
Buffer overflow attacksBuffer overflow attacks
Buffer overflow attacks
 
Intermediate code optimization Unit-4.pdf
Intermediate code optimization Unit-4.pdfIntermediate code optimization Unit-4.pdf
Intermediate code optimization Unit-4.pdf
 
Computer Organisation (DFT1113)
Computer Organisation (DFT1113)Computer Organisation (DFT1113)
Computer Organisation (DFT1113)
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Doc32002
Doc32002Doc32002
Doc32002
 
SP Solutions -Adi.pdf
SP Solutions -Adi.pdfSP Solutions -Adi.pdf
SP Solutions -Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
SP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdfSP_Solutions_-Adi.pdf
SP_Solutions_-Adi.pdf
 
Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029Mainmemoryfinal 161019122029
Mainmemoryfinal 161019122029
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1
 
Main memoryfinal
Main memoryfinalMain memoryfinal
Main memoryfinal
 
Chapter 6 notes
Chapter 6 notesChapter 6 notes
Chapter 6 notes
 
Chap6 procedures & macros
Chap6 procedures & macrosChap6 procedures & macros
Chap6 procedures & macros
 
Deploying Machine Learning Models with Pulsar Functions - Pulsar Summit Asia...
Deploying Machine Learning Models with Pulsar Functions  - Pulsar Summit Asia...Deploying Machine Learning Models with Pulsar Functions  - Pulsar Summit Asia...
Deploying Machine Learning Models with Pulsar Functions - Pulsar Summit Asia...
 

More from AISWARYA TV

THERMAL POLLUTION.pptx
THERMAL POLLUTION.pptxTHERMAL POLLUTION.pptx
THERMAL POLLUTION.pptx
AISWARYA TV
 
3rdsemsoftcopyproj
3rdsemsoftcopyproj3rdsemsoftcopyproj
3rdsemsoftcopyproj
AISWARYA TV
 
AISWARYATV 3rd sem seminar
 AISWARYATV 3rd sem seminar AISWARYATV 3rd sem seminar
AISWARYATV 3rd sem seminar
AISWARYA TV
 

More from AISWARYA TV (6)

Hospital wiring SYSTEM
Hospital wiring SYSTEMHospital wiring SYSTEM
Hospital wiring SYSTEM
 
Abstract
AbstractAbstract
Abstract
 
lubricants
lubricantslubricants
lubricants
 
THERMAL POLLUTION.pptx
THERMAL POLLUTION.pptxTHERMAL POLLUTION.pptx
THERMAL POLLUTION.pptx
 
3rdsemsoftcopyproj
3rdsemsoftcopyproj3rdsemsoftcopyproj
3rdsemsoftcopyproj
 
AISWARYATV 3rd sem seminar
 AISWARYATV 3rd sem seminar AISWARYATV 3rd sem seminar
AISWARYATV 3rd sem seminar
 

seminar 4 sem

  • 4. STACK is a LAST- INPUT -FIRST -OUTPUT read/write memory STACKS is a block of memory that may be used for temporarily storing the contents of the registers inside the CPU. The stack is a block of memory locations which is accessed using the STACK POINTER and STACK SEGMENT registers. In other words ,it is a a top-bottom data structure whose elements are accessed using the SP and SS registers. As we go on storing storing the data words into the stack, the pointer goes on decrementing and on other hand, pointer goes on incrementing as we go on retriving the data. The data in the stack register again may be transferred to stack register whenever is required by the CPU.
  • 5.
  • 6. PUSH : The process of storing the data in the stack is called ’pushing into’ the stack . ‘ PULL :The process of transferring of data from stack to the CPU is called ‘POPPING OFF’
  • 8.
  • 9. INTERRUPT SERVICE ROUTINES MEANING OF INTERRUPT IS TO MAKE A BREAK IN THE SEQUENCE OF OPERATIONS. Interrupt Service Routinees (ISR) are the programs to be executed by interrupting the main program execution of CPU ,after an interrupt request appears. After executing ISR, the control is transferred back again to the main program which was being executed at the time of interruption .
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Definition of the macro A macro is a group of repetitive instructions in a program which are codified only once and can be used as many times as necessary. The main difference between a macro and a procedure is that in the macro the passage of parameters is possible and in the procedure it is not, this is only applicable for the TASM - there are other programming languages which do allow it. At the moment the macro is executed each parameter is substituted by the name or value specified at the time of the call. We can say then that a procedure is an extension of a determined program,while the macro is a module with specific functions which can be used by different programs.Another difference between a macro and a procedure is the way of calling each one, to call a procedure the use of a directive is required, on the other hand the call of macros is done as if it were an assembler instruction.
  • 16. MACROS .avoid repetitious SAS code .create generalisable and flexible SAS code .pass information from one part of a SAS job to another .conditionally execute data steps and PROCs .dynamically create code at execution time