Closed brandonros closed 1 year ago
bitfield! {
pub struct Movw(u32);
u32;
pub get_imm12, set_imm12: 11, 0;
pub get_Rd, set_Rd: 15, 12;
pub get_imm4, set_imm4: 19, 16;
pub get_opcode, set_opcode: 27, 20;
pub get_cond, set_cond: 31, 28;
}
I had "start/end" flipped.
thread 'main' panicked at 'attempt to shift right with overflow', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/bitfield-0.14.0/src/lib.rs:681:1 note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceI'm sure I am doing something wrong....