Microprocessor Simulator 0 Help



Download 1.18 Mb.
Page30/82
Date18.03.2021
Size1.18 Mb.
#56105
1   ...   26   27   28   29   30   31   32   33   ...   82
sms32v50 (3)
sms32v50 (3), sms32v50 (6)

Hardware Interrupts


Example - 11hwint.asm

  1. Write a program that controls the heater and thermostat whilst at the same time counting from 0 to 9 repeatedly, displaying the result on one of the seven segment displays. If you want a harder challenge, count from 0 to 99 repeatedly using both displays. Use the simulated hardware interrupt to control the heater and thermostat.

  2. A fiendish problem. Solve the Tower of Hanoi problem whilst steering the snake through the maze. Use the text characters A, B, C Etc. to represent the disks. Use three of the four rows on the simulated screen to represent the pillars.

    I am not aware of anyone having solved the tower of Hanoi (including me), let alone controlling the snake at the same time.





  3. Use the keyboard on Port 07. Write an interrupt handler (INT 03) to process the key presses. You must also process INT 02 (the hardware timer) but it need not perform any task. For a more advanced task, implement a 16 byte circular buffer. Write code to place the buffered text on the VDU screen when you press Enter. For an even harder task, implement code to process the Backspace key to delete text characters in the buffer.





Download 1.18 Mb.

Share with your friends:
1   ...   26   27   28   29   30   31   32   33   ...   82




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

    Main page