Simulator
This lesson explains how to interact with the simulator for the exercise presented in the next lesson.
We'll cover the following...
The program checksum.py
is very simple: it can be used to calculate checksums
of different flavors (addition, XOR-based, or fletcher) on either random
values (as generated by the program) or on values you pass in as a series of
bytes.
When run in the default mode:
prompt> ./checksum.py
OPTIONS seed 0
OPTIONS data_size 4
OPTIONS data
Decimal: 216 194 107 66
Hex: 0xd8 0xc2 0x6b 0x42
Bin:
...