16 lines
875 B
NASM
16 lines
875 B
NASM
;;Tests all interrupt vectors to find which interrupt value is used querying the Keyboard in IM2
|
|
ORG 100H ;Tell the assembler to start at addr 0x100
|
|
START: IM 2 ;Set interrupt mode 2
|
|
LD HL,GREET ;Load the start addr. of the banner
|
|
LD B,16H ;Set the length of the banner text
|
|
LD DE,0H ;Place curser in the top left
|
|
CALL 84CDH ;Call system str_out
|
|
LD A,INTTBL/256;Load the vectors for the interrupt table
|
|
LD I,A ;Load the interrupt table to I
|
|
EI ;Make sure interrupt are allowed
|
|
LOOP: HALT ;Halt the CPU and wait for interrupts
|
|
JR LOOP ;Stay in the loop
|
|
RET ;Return to original caller
|
|
GREET: DB 'Test for keyboard int.'
|
|
END
|