Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page24/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   20   21   22   23   24   25   26   27   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

The Tasks


Here are all the learning tasks grouped together with pointers to the example programs and explanatory notes.


Simple Arithmetic


Example - 01first.asm - Arithmetic

  1. Write a program that subtracts using SUB

  2. Write a program that multiplies using MUL

  3. Write a program that divides using DIV

  4. Write a program that divides by zero. Make a note to avoid doing this in real life.


Using Hexadecimal


Example - 02tlight.asm - Traffic Lights

  1. 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

  1. 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.



Download 1.18 Mb.

Share with your friends:
1   ...   20   21   22   23   24   25   26   27   ...   82




The database is protected by copyright ©ininet.org 2024
send message

    Main page