Microprocessor Simulator 0 Help



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

Software Interrupts


Example - 10swint.asm

  1. The simulated keyboard generates INT 03 every time a key is pressed. Write an interrupt 03 handler to process the key presses. Use IN 07 to fetch the pressed key into the AL register. The original IBM PC allocated 16 bytes for key press storage. The 16 locations are used in a circular buffer fashion. Try to implement this.

  2. Build on task 26 by puting characters onto the next free screen location. See if you can get correct behaviour in response to the Enter key being pressed (fairly easy) and if the Back Space key being pressed (harder).



Download 1.18 Mb.

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




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

    Main page