seminar 4 sem

19
AISWARYA. T.V. ROLLNO :54 S4 BIOMEDICAL

Transcript of seminar 4 sem

Page 1: seminar 4 sem

AISWARYA. T.V.

ROLLNO :54 S4 BIOMEDICAL

Page 2: seminar 4 sem

STACK

MACROS

PROCEDURES

CONTENTSINTERRUPT SERVICE ROUTINES

Page 3: seminar 4 sem

STACKS

Page 4: seminar 4 sem

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.

Page 5: seminar 4 sem
Page 6: seminar 4 sem

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’

Page 7: seminar 4 sem

INTERRUPT &INTERRUPT SERVICE ROUTINES

Page 8: seminar 4 sem
Page 9: seminar 4 sem

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 .

Page 10: seminar 4 sem
Page 11: seminar 4 sem
Page 12: seminar 4 sem
Page 13: seminar 4 sem
Page 14: seminar 4 sem
Page 15: seminar 4 sem

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 bydifferent 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.

Page 16: seminar 4 sem

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

Page 17: seminar 4 sem
Page 18: seminar 4 sem
Page 19: seminar 4 sem