mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-04-18 13:28:36 +01:00
rearranged order of expected output in build.zig
This commit is contained in:
parent
657fd6aff0
commit
0fa86eb8c8
1 changed files with 10 additions and 11 deletions
21
build.zig
21
build.zig
|
@ -1209,6 +1209,16 @@ const exercises = [_]Exercise{
|
|||
,
|
||||
},
|
||||
.{ .main_file = "110_bit_manipulation3.zig", .output =
|
||||
\\Toggle pins with XOR on PORTB
|
||||
\\-----------------------------
|
||||
\\ 1100 // (initial state of PORTB)
|
||||
\\^ 0101 // (bitmask)
|
||||
\\= 1001
|
||||
\\
|
||||
\\ 1100 // (initial state of PORTB)
|
||||
\\^ 0011 // (bitmask)
|
||||
\\= 1111
|
||||
\\
|
||||
\\Set pins with OR on PORTB
|
||||
\\-------------------------
|
||||
\\ 1001 // (initial state of PORTB)
|
||||
|
@ -1228,17 +1238,6 @@ const exercises = [_]Exercise{
|
|||
\\ 0111 // (reset state)
|
||||
\\& 1110 // (bitmask)
|
||||
\\= 0110
|
||||
\\
|
||||
\\
|
||||
\\Toggle pins with XOR on PORTB
|
||||
\\-----------------------------
|
||||
\\ 1100 // (initial state of PORTB)
|
||||
\\^ 0101 // (bitmask)
|
||||
\\= 1001
|
||||
\\
|
||||
\\ 1100 // (initial state of PORTB)
|
||||
\\^ 0011 // (bitmask)
|
||||
\\= 1111
|
||||
},
|
||||
.{
|
||||
.main_file = "999_the_end.zig",
|
||||
|
|
Loading…
Reference in a new issue