From 176b4f105cabcaf89864a8c7d18dc3cc799d895a Mon Sep 17 00:00:00 2001 From: Guilherme Pereira Juventino <102329519+GuilhermeJuventino@users.noreply.github.com> Date: Mon, 22 Jun 2026 00:21:22 -0300 Subject: [PATCH] Update bcd.md (small typo fix) Fixed a small typo in the BCD decimal numbers tutorial found in part 2 of the tutorial. In this case there was a section where the word "the" was typed twice, as in "Then we load the *the* score from that address into register A, the only register to be affected by ADD. This means that we can now increment it by 1 using exactly that instruction." All I did was remove the second "the" --- src/part2/bcd.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/part2/bcd.md b/src/part2/bcd.md index 2806be03..90f3da55 100644 --- a/src/part2/bcd.md +++ b/src/part2/bcd.md @@ -41,7 +41,7 @@ Let's have a look at what's going on there: First we store the score address (`wScore`) in HL. This allows us to use instructions like `LD A, [HL]` and `LD [HL], A`. In total this is 1 M-cycle and 1 byte more efficient than if we provided the address itself when loading and storing the score (`LD A, [wScore]` and `LD [wScore], A` respectively). -Then we load the the score from that address into register A, the only register to be affected by `ADD`. This means that we can now increment it by 1 using exactly that instruction. +Then we load the score from that address into register A, the only register to be affected by `ADD`. This means that we can now increment it by 1 using exactly that instruction. So far so good, but what if the score was 9 and we add 1? The processor thinks in binary only and will do the following math: