compiler construction - How to get the value of MSB bit of a token returned by LEX -
i have lex specification file below; if input of form r[0-7] return token "reg" yacc file. want "rotate right carry" operation in lex , yacc. need know value of r1[7] , r1[0] can use:
r1[0] = cf cf = r1[7]
in yacc file, register values stored in regmem. how define number of bits register , how access them?
Comments
Post a Comment