Question: Q 1 . Design a DFA that will recognize the following assembly language constructs MOVx, Y ; Registers x , Yin { A , B

Q 1. Design a DFA that will recognize the following assembly language constructs
MOVx,Y; Registers x,Yin{A,B,C,D}.
MVI X,IH; Register xin{A,B,C,D} and immediate value I is a two digit hexadecimal number
followed by an H.
ADDx,Y; Registers x,Yin{A,B,C,D}.
ADIx,IH; Register xin{A,B,C,D} and immediate value I is a two digit hexadecimal number
followed by an H.
SUB x,Y; Registers x,Yin{A,B,C,D}.
SBIx,IH; Register xin{A,B,C,D} and immediate value I is a two digit hexadecimal number
followed by an H.
CMPx,Y; Registers x,Yin{A,B,C,D}.
CPI x,IH; Register xin{A,B,C,D} and immediate value I is a two digit hexadecimal number
followed by an H.
JMP Li; Label Li where L is followed by an integer iin{0,1,dots} in decimal.
JEQ Li; Label Li where L is followed by an integer iin{0,1,dots} in decimal.
JGT Li; Label Li where L is followed by an integer iin{0,1,dots} in decimal.
JLT Li; Label Li where L is followed by an integer iin{0,1,dots} in decimal.
Li: ; Label Li where L is followed by an integer iin{0,1,dots} and a colon (.
A semicolon (;) is for end-of-line comments.
Q 1 . Design a DFA that will recognize the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!