1. The company has asked you verbally or in writing?
You should keep on attending office and mark your attendance, until you receive written orders.
If you stop as per verbal orders you shall certainly be without salary for 2 months.
2. Another option is that you can ask the new employer if they can issue offer letter and absorb you immediately.
After the offer letter is received by you and terms and conditions are found acceptable, you are safe.
This shall suit all the parties. However you should not resign until your current company agrees to wave off the shortfall in notice period in writing.
3. You can withdraw your notice before the effective date of resignation.
4. It is felt that before the effective date of Resignation Company cannot accept your resignation, whatever reason they may quote. If they do so, the action can be termed as illegal. Hence if they have finalised upon your replacement, they shall try the tactics to move you out and absorb the replacement. If you tend to agree with the decision of the company, you can ask for the notice pay for the balance period.
Valuable advice of learned experts/members is sought.