Re: 請問位元組合的寫法
|
||||
---|---|---|---|---|
資深會員
|
請自行動手試試看(try and error).
你將會得到答案與經驗. 謝謝
發表於: 2009/12/24 16:53
|
|||
|
Re: 請問位元組合的寫法
|
||||
---|---|---|---|---|
資深會員
|
參照:
沒錯是得到0x0805 要如何修正bit數由大到小?
發表於: 2009/12/24 16:34
|
|||
|
Re: 請問位元組合的寫法
|
||||
---|---|---|---|---|
資深會員
|
Flags.Commmand=0b101;
發表於: 2009/12/24 15:49
|
|||
|
請問位元組合的寫法
|
||||
---|---|---|---|---|
資深會員
|
請問位元組合的寫法:
struct { unsigned int Commmand : 3 ; unsigned int Seg : 7 ; unsigned int Com : 4 ; unsigned int Non : 2 ; } Flags ; Flags.Commmand=0b101; Flags.Seg=0; Flags.Com=0b0010; Flags.Non=0; Flags=0xA008 但是組合起來Flags卻不是0XA008 請各位先進指導謝謝^^
發表於: 2009/12/24 14:54
|
|||
|