This program allows you to see how address translations are performed in a system with segmentation.
First let's use a tiny address space to translate some addresses. Here's a simple set of parameters with a few different random seeds; can you translate the addresses?
segmentation.py -a 128 -p 512 -b 0 -1 20 -B 512 -L 20-S0
segmentation.py -a 128 -p 512 -b 0 -1 20 -B 512 -L 20-S 1
segmentation.py -a 128 -p 512 -b 0 -1 20 -B 512 -L 20 -S 2 2.