| ??? 07/31/03 14:15 Read: times |
#51822 - pushing and poping Responding to: ???'s previous message |
well friend pushing 7 means register 7 of bank 0 is getting pushed
it can be direstly pushed without mentioning which bank u r using pop is the inverse of it ........ i hope u know the meaning of pushing and popping .... if not .. here's the explanation ........ whenever u wish to do anything which might corrupt the original contents of the register u are supposed to push it on the stack so that it remains safe there and then when u are done with the corrupting part pop the value back ..... simple ain't it .......... but please be very careful while handling push and pop as they can create a havoc in the code if not properly matched ..... especially while calling the subroutines the value of the PC is incremented and pushed onto the stack so be care ful about pushing as " incase u push 2 quantities and pop only one " u might return to some junk location in the code ....... be careful and that's it .......... things pushed in a sequence are to be popped in reverse sequence " happy pushing and popping nitin |



