253: MICROSIM-2

Microcontroller Manipulation

1. Come to class as there may be corrections, changes and additions.   Significant late penalty per day.
2. SUBMIT a file called "microsim-2.asm" to the D2L dropbox.
3. DOCUMENT!! (guidelines)

Create a microsim program as follows:

            0. Get the Software (v 5.0)
               See the online documentation (also built into simulator)
               UNDERSTAND:
                  Your code in hex in memory
                  IP
                  Pointers
                  Procedures
                  Stack
                        
            
         1. Use Microsim and the DB directive to create a data table that includes at least 5 characters from 
            your first name, a space, and then your last name initial. Terminate with a byte of zeroes.
            Upon execution use POINTERS to read from the data table and write to the VDU in a loop.
            The VDU uses the last 64 bytes of our 256 byte RAM.      
            video   


         2. While reading the table, when encountering a space, call a PROCEDURE that will turn on all the 
            traffic lights using port 1. 
            Use ORG to locate the procedure in UNUSED RAM! 
            Remember the STACK!
            light


         3. Upon encountering the end of the data table (a byte of zeroes), display the last TWO digits of 
            your student Id on the SEVEN SEGMENT DISPLAY using port 2.
            light   
            

        *4. Comment the code - demonstrate you know what you are doing (why not what)
            Include header, ID, date, why written, plan of solution


         HINTS: 
            Know where you code is in RAM.
            Look at RAM.
            Look at the list file.
            Count.