ORG 0000H MOV R0,#45H MOV R1,#5 Mov Tmod,#20H Mov Th1,#0Fdh Mov Scon,#50H Setb Tr1 Again: JNB Ri, Again Mov A, Sbuf MOV @R0, A Inc R0 DJNZ R1, Again

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

grawrwgawhharna

CHALLENGING TASK 1

ORG 0000H

MOV R0,#45H

MOV R1,#5

MOV TMOD,#20H

MOV TH1,#0FDH

MOV SCON,#50H

SETB TR1

AGAIN: JNB RI,AGAIN

MOV A,SBUF

MOV @R0,A

INC R0

DJNZ R1,AGAIN

END
TASK 1

ORG 0000H

MOV TMOD,#20H

MOV TH1,#0FDH

MOV SCON,#50H

SETB TR1

AGAIN: MOV A,#'V'

ACALL TRANS

MOV A,#'I'

ACALL TRANS

MOV A,#'T'

ACALL TRANS

MOV A,#' '

ACALL TRANS

SJMP AGAIN

TRANS: MOV SBUF,A

HERE: JNB TI,HERE

CLR TI

RET

END
TASK 2

ORG 0000H

MOV TH1,#0FAH

MOV SCON,#50H

SETB TR1

HERE: JNB RI,HERE

MOV A,SBUF

MOV 45H,A

CLR RI

SJMP HERE

END

CHALLEGING TASK 2

ORG 0000H

MOV P1,#0FFH

MOV P2,#00H

MOV TMOD,#20H

MOV TH1,#0FDH

MOV SCON,#50H

SETB TR1

AGAIN: JNB P1.3,RECIEVE

TRANSMIT: MOV A,#'H'


ACALL TRANS

MOV A,#'E'

ACALL TRANS

MOV A,#'L'

ACALL TRANS

MOV A,#'L'

ACALL TRANS

MOV A,#'O'

ACALL TRANS

MOV A,#' '

ACALL TRANS

SJMP AGAIN

RECIEVE: JNB RI,RECIEVE

MOV A,SBUF

MOV P2,A

CLR RI

SJMP AGAIN

TRANS: MOV SBUF,A

HERE: JNB TI,HERE

CLR TI

RET

END

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy