Question: # Polling, rather than push # push ( using interrupts ) on Tuesday. #Hexadecimal keyboard # Byte value at address 0 xFFFF 0 0 1

# Polling, rather than push
# push (using interrupts) on Tuesday.
#Hexadecimal keyboard
# Byte value at address 0xFFFF0012 : command row number of hexadecimal keyboard
(bit 0 to 3)
# and enable keyboard interrupt (bit 7)
# Byte value at address 0xFFFF0014 : receive row and column of the key pressed, 0
if not key pressed
# The mips program have to scan, one by one, each row (send 1,2,4,8...) and then
observe if a key is
# pressed (that mean byte value at adresse 0xFFFF0014 is different from zero).
This byte value is
# composed of row number (4 left bits) and column number (4 right bits) Here you'll
find the code for
# each key :
0x11,0x21,0x41,0x81,0x12,0x22,0x42,0x82,0x14,0x24,0x44,0x84,0x18,0x28,0x48,0x88.
# For exemple key number 2 return 0x41, that mean the key is on column 3 and row 1.
# If keyboard interruption is enable, an exception is started, with cause register
bit number 11 set.
# So... we print a lot of crap... How can we change our program to only print a
value when change happens.
# Wait... CSC120, A program that tracks change of state.. What kind of programs
did you study in CSC120?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!