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

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -