This is Sankar GCC compiler gives the segmentation fault because of pfunc() stack destroyed
The vector interrupt address of TRAP in 8085 microprocessor is
Vectored address of interrupt is 0024. see here http://www.idc-online.com/control1/Interrupts_of_intel_8085.pdf
I didnt get the solution how come