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

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -