Forum Discussion
Altera_Forum
Honored Contributor
9 years ago"00111000" is a octal number
"111000" would be decimal "0b00111000" would be binary To get "A" use: A = (*switches>>0) & 0x07; B= (*switches>> 3) & 0x7; op = (*switches >> 6) & 0x3;"00111000" is a octal number
"111000" would be decimal "0b00111000" would be binary To get "A" use: A = (*switches>>0) & 0x07; B= (*switches>> 3) & 0x7; op = (*switches >> 6) & 0x3;