??? 03/07/07 16:41 Read: times |
#134527 - Well i think that Pushing PSW is not neccesary .. Responding to: ???'s previous message |
well sir i think that Pushing and Poping PSW is not Neccasary but if you say then it this
SERIAL: PUSH ACC ;Push A PUSH PSW ;Pushing Program Status Word as JW said JNB RB8,GET_DATA ;Jump if RB8=0 means data MOV A,SBUF ;Move the copy to Accumulator CJNE B,#001H,GO_ON ;Compare the Address if its equal to 001H then CLR SM2 ;Clear the SM2 to get the data SJMP GO_ON GET_DATA: MOV A,SBUF ;Get the copy to Accumulator MOV B,A ;Save the A to B to main to see CJNE A,#010H,GO_ON END_DATA: SETB SM2 ;Set the SM2 for agian for the Address GO_ON: POP PSW ;Poping Program Status Word as JW said POP ACC ;Pop A RETI ;Return back |