Question: Q 1 . Design a DFA that will recognize the following assembly language constructs MOVx, Y ; Registers x , Yin { A , B
Q Design a DFA that will recognize the following assembly language constructs
MOVx,; Registers Yin
MVI XIH; Register xin and immediate value I is a two digit hexadecimal number
followed by an
ADDx,; Registers Yin
ADIx,; Register xin and immediate value I is a two digit hexadecimal number
followed by an
SUB ; Registers Yin
SBIx,; Register xin and immediate value I is a two digit hexadecimal number
followed by an
; Registers Yin
I ; Register xin and immediate value I is a two digit hexadecimal number
followed by an
JMP Li; Label where is followed by an integer iindots in decimal.
JEQ ; Label where is followed by an integer iindots in decimal.
JGT Li; Label where is followed by an integer iindots in decimal.
JLT Li; Label where is followed by an integer iindots in decimal.
Li: ; Label where is followed by an integer iindots and a colon
A semicolon ; is for endofline comments.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
