Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

NEED HELP MAKING AN ASSEMBLY CODE FOR THE SDK-85 questions are below the picture

ID: 3840669 • Letter: N

Question

NEED HELP MAKING AN ASSEMBLY CODE FOR THE SDK-85 questions are below the picture




(a) by writing and assembly program that displays the messages: PASS, FAIL, BLANKS during one second, two second, and three seconds each, by calling the output subroutine just once.

(b) modify Part a by displaying 10 times the above sequence (PASS, FAIL, BLANKS)

(c) modify Part b to display the sequence PASS, FAIL, BLANKS with the following timing.
PASS: during 5 seconds
FAIL: during 7 seconds
BLANKS: during 8 seconds
(total display time 200 seconds)

(1) neat/ clear flow chart for parts a,b, and c.

(2) A mnemonic/Assembly program for part 1

(3) a detail calculation for the delay used. ( De value and # of cycles)

Repeat ig writing AM Assemb% pogrom that dispays the messages EAS FAIL, BLANKS during one second, seconds Sequence tee Bollo pass, Bal BLANKS

Explanation / Answer

MEMORY LOCATION

OP CODES

FLOW CHART

MNEMONICS

BYTES

CYCLES

2010

31

[SP]<-20C2

LXI SP, 20C2

3

10

2011

C2

2012

20

2013

01

[BC]<-|0302|

LXI B, 0302

3

10

2014

02

2015

03

2016

C5

PUSH B

PUSH B

1

12

2017

21

[HL]<-|2000|

LXI H, 2000

3

10

2018

00

2019

20

201A

E5

PUSH H

PUSH H

1

12

201B

3E

[A]<-|00|

MVI A, 00

2

7

201C

00

201D

06

[B]<-|00|

MVI B,00

2

7

201E

00

201F

CD

CALL 02B7

CD 02B7

3

18

2020

B7

2021

02

2022

C1

POP B

POP B

1

10

2023

79

[A]<-[C]

MOV A,C

1

4

2024

C5

PUSH B

PUSH B

1

12

2025

F5

PUSH PSW

PUSH PSW

1

12

2026

11

[DE]<-| |

LXI D, XXXX

3

10

2027

2028

2029

1B

[DE]<-[DE]-|1|

DCX D

1

6

202A

7A

[A]<-[D]

MOV A, D

1

4

202B

B3

[A]<-[A]V[E]

ORA E

1

4

202C

C2

JNZ 2029

JNZ 2029

3

7/10

202D

29

202E

20

202F

F1

POP PSW

POP PSW

1

10

2030

3D

[A]<-[A]-|1|

DCR A

1

4

2031

CE

JNZ 2025

JNZ 2025

3

7/10

2032

25

2033

20

2034

E1

POP H

POP H

1

10

2035

23

[HL]<-[HL]+|1|

INX H

1

6

2036

3E

[A]<-|0B|

MVI A, 0B

2

7

2037

0B

2038

BD

[A]<->[L]

CMP L

1

4

2039

C2

JNZ 201A

JNZ 201A

3

7/10

203A

1A

203B

20

203C

C1

POP B

POP B

1

10

203D

0C

[C]<-[C]+|1|

INR C

1

4

203E

0C

[C]<-[C]+|1|

INR C

1

4

203F

78

[A]<-[B]

MOV A, B

1

4

2040

3D

[A]<-[A]-|1|

DCR A

1

4

2041

C2

JNZ 2016

JNZ 2016

3

7/10

2042

16

2043

20

2034

CF

END

RST1

1

12

  

TIME DELAY:

1 = 330 × 10^-9{ 48 × X10 + 106 + 158}

=> 1/300*10^9 = 48 × X10 + 264

=> 48 × X10 =1 /300*10^9 -264

=> X10 = 1/(330*48)× 10^9-264

=> X10 = 63,125

HEX= F695

MEMORY LOCATION

OP CODES

FLOW CHART

MNEMONICS

BYTES

CYCLES

2010

31

[SP]<-20C2

LXI SP, 20C2

3

10

2011

C2

2012

20

2013

01

[BC]<-|0302|

LXI B, 0302

3

10

2014

02

2015

03

2016

C5

PUSH B

PUSH B

1

12

2017

21

[HL]<-|2000|

LXI H, 2000

3

10

2018

00

2019

20

201A

E5

PUSH H

PUSH H

1

12

201B

3E

[A]<-|00|

MVI A, 00

2

7

201C

00

201D

06

[B]<-|00|

MVI B,00

2

7

201E

00

201F

CD

CALL 02B7

CD 02B7

3

18

2020

B7

2021

02

2022

C1

POP B

POP B

1

10

2023

79

[A]<-[C]

MOV A,C

1

4

2024

C5

PUSH B

PUSH B

1

12

2025

F5

PUSH PSW

PUSH PSW

1

12

2026

11

[DE]<-| |

LXI D, XXXX

3

10

2027

2028

2029

1B

[DE]<-[DE]-|1|

DCX D

1

6

202A

7A

[A]<-[D]

MOV A, D

1

4

202B

B3

[A]<-[A]V[E]

ORA E

1

4

202C

C2

JNZ 2029

JNZ 2029

3

7/10

202D

29

202E

20

202F

F1

POP PSW

POP PSW

1

10

2030

3D

[A]<-[A]-|1|

DCR A

1

4

2031

CE

JNZ 2025

JNZ 2025

3

7/10

2032

25

2033

20

2034

E1

POP H

POP H

1

10

2035

23

[HL]<-[HL]+|1|

INX H

1

6

2036

3E

[A]<-|0B|

MVI A, 0B

2

7

2037

0B

2038

BD

[A]<->[L]

CMP L

1

4

2039

C2

JNZ 201A

JNZ 201A

3

7/10

203A

1A

203B

20

203C

C1

POP B

POP B

1

10

203D

0C

[C]<-[C]+|1|

INR C

1

4

203E

0C

[C]<-[C]+|1|

INR C

1

4

203F

78

[A]<-[B]

MOV A, B

1

4

2040

3D

[A]<-[A]-|1|

DCR A

1

4

2041

C2

JNZ 2016

JNZ 2016

3

7/10

2042

16

2043

20

2034

CF

END

RST1

1

12