
Assembly programs
• Example: Add three numbers together.
The values to added should be placed in
memory locations 10h, 11h and 12h.
The sum should be placed in memory
position 13h.
• Example: Write a program that
converts lowercase to uppercase ASCII
character stored in a memory.
The Brookshear Machine
and SimpSim Assembly
• 16 General purpose registers
– Numbered 0-F (0-15)
• 256 8-bit-size memory cells
– Numbered 00-FF (0-255)
• 15 simple instructions
– Encoded using 2 bytes per instruction
– Hex notation: 4 hex digits per instruction
• MSB hex for the opcode
• The other three hex digits for the operands