File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 11# Serial Link
22
3- ---
4-
5- ** TODO:** In this lesson...
6- - learn how to control the Game Boy serial port from code
7- - build a wrapper over the low-level serial port interface
8- - implement high-level features to enable reliable data transfers
9-
10- ---
3+ In this lesson, we will:
114
5+ - Learn how to control the Game Boy serial port from code;
6+ - Build a wrapper over the low-level serial port interface;
7+ - Implement checksums to verify data integrity and enable reliable data transfers.
128
139## Running the code
1410
@@ -251,7 +247,7 @@ The errors that we're concerned with are data replication errors -- any case whe
251247<!-- Link/checksum -->
252248The first step is detection.
253249The receiver needs to test the integrity of every incoming data packet, before doing anything else with it.
254- We'll use a [ checksumming ] ( https://en.wikipedia.org/wiki/Checksum ) mechanism for this:
250+ We'll use a [ checksum ] ( https://en.wikipedia.org/wiki/Checksum ) mechanism for this:
255251- The sender calculates a checksum of the outgoing packet and the result is transmitted as part of the packet transfer.
256252- The receiver performs the same calculation and compares the result with the value from the sender.
257253- If the values match, the packet is intact.
You can’t perform that action at this time.
0 commit comments