 Hello everyone, today we are going to see the design of microproprocessor. Learning outcome at the end of this session students will be able to design the different tables of microproprocessor. Now here this is the schematic of the microproproprocessor. So for the input is given to the microproproprocessor is the assembly program with micro definition and calls. So here the microproprocessor translates that program and it generates the program without micro definition and micro calls. So this program is given as the input to the assembly. Assembler generates the target program for the given assembly program without micro definition and micro call. Now next we see the data structures of the microproprocessor. There are nine data structures are there that are used in the microproprocessor. So here there are two fields are there tables and the fields in each table. So for the first table is the micro name table. So it is represented MNT and in the second column they represent the fields in the respective table. So in the MNT table there are seven fields are there. First field is the micro name, second field is the number of positional parameter. It is represented by the variable hash pp. Third is the number of keyword parameters. It is represented by the variable hash kp. The next field is the number of expansion time variable. It is represented by the hash ev. Next field is the mdt pointer, micro definition table pointer. It is represented by the variable mdtp. Next field is the keyword parameter default table pointer. It is represented by the variable kpdtp and the last field is the sstap pointer means sequencing symbol table pointer. It is represented by the variable sstp. So this is the first table. Now the second table is the parameter name table. It is represented by the pn tab. It is having only single field parameter name. The third table is the expansion time variable name table. So it is represented by ev and tab and it is having only single field ev name means here we specify the expansion time variable name. Next table is the ssname table, sequencing symbol name table. Again it is having the single field sequencing symbol name. Next table is the keyword parameter default table. It is represented by kpdtab. It is having the two fields parameter name and the default value. Now the next table is the micro definition table. It is represented by mdt. It is having the three fields label, opcode and operands. Now the next table is the ev table expansion time variable table. So here the the value of the expansion time variable is stored. So here it is having only single field value. Now the next table is the actual parameter table. So it is represented by ap tab. So here we specify the actual value of the parameters. Next table is the ss table. It is represented by sequencing symbol table. It is having only single entry mdt entry hash. Now next we see the example. So here this is the micro definition. So in the given micro definition the name of the micro is clear m. It is having the three parameters ampersons x, ampersons n and ampersons register. So here ampersons x and ampersons n are the positional parameter and the ampersons register is equal to a register is the keyword parameter. Now first table we built is the pn tab parameter name table. So here we specify the parameter name in the given table. So here there are three parameters are there and the name of that parameter is x, n and register. So we enter that parameters in the pn tab. So first we enter the x, next we enter the n and next we enter the register. So this is the pn tab parameter name table. Now next we generate the table keyword parameter default table. So here we specify the name of the parameter and its default value. So here the name of the parameter is register and it is having the default value a register. Now similarly next here we see the micro call for the given micro. So here the name of the micro is clear m. The first actual value is area and the second actual value is 10. Now next table we built is the actual parameter table. So here the first formal parameter is x. So here the x formal parameter is having the actual value area and the second formal parameter is n. It is having the actual value 10 and the register is having the default value a register. So here we enter the actual values in the given table actual parameter table. So here first we enter the area, next we enter the 10 and next we enter the a register. Now similarly we process the next statement lcl ampersand m. So here lcl ampersand m is creates the local expansion time variable and the name of that variable is m. So here we enter that variable in the table ev and tab expansion time variable name table. So here we enter the name of that variable the name of that variable is m. Now the next statement we process is ampersand m set 0. So here the set statement assigns the value 0 to the expansion time variable m. So we enter into that value into the table ev tab expansion time variable table. So we enter the value 0 in that table. Next we generate the table assassin tab sequencing symbol name table. So for the given micro definition there is a one sequencing symbol is there and the name of that sequencing symbol is more. So here we enter that name of that symbol in the table sequencing symbol name table. Now next we generate the table micro definition table. So here 25, 26, 27, 28, 29, 30, 31 these are the micro definition table pointer values. Now here first we process the statement lcl ampersand m. So for this statement we generate the specification here first of all we write the lcl as it is and for the ampersand m. See ampersand m is what it is the expansion time variable. For the expansion time variable we generate the specification in the form e, hash n. So e indicates it is the expansion time variable and a hash n it indicates the entry number of that symbol in the given table. Here e is it is a expansion time variable and here one indicates entry number of that symbol in the evn tab. So here ampersand here ampersand m means the m symbol it is enter in the table at first. So that is why here we specify 1. Similarly we process the next statement ampersand m set 0. So again for ampersand m we generate the specification e comma 1 next we specify set and next we specify 0. Now the next statement we process move r ampersand gistro comma equal to 0. So here first of all we specify the operation code move r as it is. Now here ampersand gister again for the register also we generate the specification p comma hash n. p indicates it is a parameter and hash n it indicates the entry number of that parameter in the table. So here for that we generate the specification p comma 3. So here p indicates it is a parameter and 3 indicates the entry number of that register symbol in the given table. Now next we specify equal to 0 as it is. Similarly we process the next statement move m ampersand gistro comma ampersand x plus ampersand m. So here first of all we specify the operation code move m. Next we generate the specification for ampersand gister. So again register is what it is a parameter. So here we specify p comma 3. 3 indicates entry number of that formal parameter in the table. Now next is what ampersand x. Again x is the parameter. So for that also we generate the specification in the form p comma hash n. So here p indicates it is a parameter and hash n means what it is a entry number of that parameter in the table. So here we specify the 1 because the x parameter is enter in the table at first position. So that is why here we specify 1. Now next is what we specify the plus symbol and ampersand m. Again m is what expansion time variable. So for that purpose we generate the specification e comma 1. Now next statement we process ampersand m set ampersand m plus 1. So again we generate the specification for the expansion time variable. So here we specify the e comma 1. e indicates it is the expansion time variable. 1 indicates entry number of that very symbol in the table. Now next we specify the set statement. So here we specify set. Next we generate the specification for the ampersand m. So again m is what expansion time variable. So here we specify e comma 1. 1 indicates entry number of that table, entry number of that symbol in the table even tab. Next we specify the plus symbol and next we specify 1. Similarly we process the next statement aif ampersand m any n dot more. So here for that statement we generate the code aif. Here ampersand m again it is expansion time variable. So here we specify e comma 1 any it is not equal. So here we specify not equal as it is n. Again n is a parameter. So for that parameter we generate the specification in the form p comma hash n. So here p indicates it is a parameter and hash n it is indicating the entry number of that parameter in the pn tab. So here for that n we specify the specification p comma 2. Next we generate the specification for the sequencing symbol. So again we generate the specification for the sequencing symbol more. So for the syntax is s comma hash n. So s indicates it is a sequencing symbol and a hash n it is indicating the entry number of that sequencing symbol in the given table as a sent tab. So here the more symbol it is the entry number of that more symbol is first. So that is why here we specify first. And the last statement we process is micro end statement. So we write as it is. So here in the micro definition table we store the micro body. Now next table we generate is sequencing symbol table. So here we specify the MDT entry hash means what? Here in the micro definition table which statement is containing the sequencing symbol. So here you can see here you can see in the micro definition at the line number 28 it is containing the sequencing symbol. So that is why here we specify 28. Now the next table we generate is the micro name table. So here the first field is the name. So the name of the micro is clear m. Now the second field is hash pp means number of positional parameters. So there are two positional parameters are there for the given micro definition. Now the next field is hash kp it indicates number of keyword parameters. So there is only one keyword parameter is there. Now the next field is hash ev. So it indicates number of expansion time variables. So again only single expansion time variable is there for the given micro definition. Next field is micro definition table pointer. So here the micro definition table pointer is starting at the position 25. So here we specify 25. Now the next field is the keyword parameter default table pointer. So here the value is 10. At the entry number 10 the value will be stored. In the last field is the sstp sequencing symbol table pointer. So the value of that pointer value is 5. So here we mention the 5. Now after saying the concept can you tell me when the definition of sequencing symbol is encountered and entries added to dash the options are p and tab. Next keyword parameter default table. Next SSN tab sequencing symbol name table and the fourth sequencing symbol table. Pause the video and think about it. The answer is we enter into the sequencing symbol name table. These are the references. Thank you.