imperative / assembly
Analogy
Collected by Andrew Petersen — colleague's practice
Provides tangible focus for discussing addresses, offsets, and even byte ordering and segments.
| PL | NM |
|---|---|
| memory cell | seat |
| value | student or number given to student |
| address | established by counting off |
| offset | number of seats between two targets |
| segment | front, middle, or back of the room |
Relationships between items in memory, whether they are elements of an array, bytes in a single value, or different methods for allocating space.
When you first introduce the idea of an address.
Very small
Do you have feedback on this notional machine? Did you find a mistake, or do you have a request for improvement? You can create an Issue on GitHub, where the description is hosted. This way we can see your feedback and address it.
For this, you need a GitHub account. Then follow this link to see the source file of this page. In there, click the ... left of the highlighted line, then pick "Reference in a new issue".