Interrupt Handling; Adding A Test Sequence Header - Motorola System 6300 Service Manual

Table of Contents

Advertisement

New Tests
shortstring
Longstring and shortstring can be identical strings.

INTERRUPT HANDLING

For interrupt handling, you must insert in trap.c a case in the
switch corresponding to the vector number on which interrupts for
your test will occur.
switch statement on the interrupt vector.
function trap(), the general status register (GSR) and bus status
register (BSR) are; saved with all the bits positive true (i.e.,
the sense of the negative true bits is inverted) .
indicate which test is running so that you can differentiate
between interrupts which occur while you are running your test
and other, spurious interrupts.
interrupt handler and the diagnostic function should be through
global flags or data structures.

ADDING A TEST SEQUENCE HEADER

To add a test sequence header, add the following to the data
structure TestList in the program main.c:
1.
The test name (a char).
2.
A short help description (a *char).
3.
A long help description (also a *char).
4.
The test sequence (a set of test, subtest pairs ended by
(-1,0)).
In addition, you must add a pointer to the function in the array
fn_array.
The function's position in fn_array determines the
test number.
Refer to the data structure TestList for examples.
3-2
is a string saved for summary
information in long mode.
The procedure trap is primarily a large
Communication between the
At the top of the
Use a flag to

Advertisement

Table of Contents
loading

Table of Contents