The Tasks
Here are all the learning tasks grouped together with pointers to the example programs and explanatory notes.
Example - 01first.asm - Arithmetic
Write a program that subtracts using SUB
Write a program that multiplies using MUL
Write a program that divides using DIV
Write a program that divides by zero. Make a note to avoid doing this in real life.
Example - 02tlight.asm - Traffic Lights
Use the help page on Hexadecimal and Binary numbers. Work out what hexadecimal numbers will activate the correct traffic lights. Modify the program to step the lights through a realistic sequence.
ASCII Codes
Example - 03move.asm
Look up the ASCII codes of H, E, L, L and O and copy these values to memory locations C0, C1, C2, C3 and C4. This is a simple and somewhat crude way to display text on a memory mapped display.
Share with your friends: |