1st step: Reads data frm port0
2nd step: Writes data to port2
3rd step: It checks for bit 3 of port2 if it z '0' it will go to stat label this repeats until bit 3 sets.
JNB means jump if not bit(means it cheks whether that particular bit zero or not).