summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Sisco <36649949+devspeare@users.noreply.github.com>2025-02-04 09:06:23 -0800
committerAlexander Sisco <36649949+devspeare@users.noreply.github.com>2025-02-04 09:06:23 -0800
commit0fa86eb8c8fc76f8f1bb396b83d1d453edd870d1 (patch)
tree77af71aa0cee9b9985900b13c8d70b6706795cf2
parent657fd6aff065b900d55c6e6f037fe4dc3dc6e7f6 (diff)
rearranged order of expected output in build.zig
-rw-r--r--build.zig21
1 files changed, 10 insertions, 11 deletions
diff --git a/build.zig b/build.zig
index 9774833..c8f26fd 100644
--- a/build.zig
+++ b/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",