Home XBIOSXBIOS Hatari DHS XBIOS extensionHatari DHS XBIOS extension Drive functionsDrive functions

4.13 Interrupt functions

Jdisint Disables an MFP interrupt.
Jenabint Enables an MFP interrupt.

See also: Interface programming

4.13.1 Jdisint

Name: »disable interrupt« - Disable interrupts of the multi-functional peripheral port.
 
Opcode: 26
 
Syntax: void Jdisint( int16_t number );
 
Description: The XBIOS routine Jdisint disables a designated type of interrupt that is specified by number on the multi-functional peripheral port. The parameter number refers to the following interrupts:
 

number Description
 0 I/O-port bit 0 Busy parallel port
 1 RS-232 DCD
 2 RS-232 CTS
 3 Blitter
 4 Timer D, RS-232 Baud generator
 5 Timer C, 200 Hz system clock
 6 Keyboard and MIDI
 7 FDC and DMA
 8 Timer B line flyback
 9 RS-232 transmit error
10 RS-232 transmit buffer empty
11 RS-232 receive buffer full
12 RS-232 buffer full
13 Timer A
14 RS-232 RI
15 Monochrome monitor detect
Return value: The function does not return a result.
 
Availability: All TOS versions.
 
Group: Interrupt functions
 
See also: Binding   Jenabint   Mfpint
 

4.13.1.1 Bindings for Jdisint

C: #include <tos.h>
 
void Jdisint( int16_t number );
 
Assembler:
 
move.w    number,-(sp)  ; Offset 2
move.w    #26,-(sp)     ; Offset 0
trap      #14           ; Call XBIOS
addq.l    #4,sp         ; Correct stack

4.13.2 Jenabint

Name: »enable interrupt« - Enable interrupts of the multi-functional peripheral port.
 
Opcode: 27
 
Syntax: void Jenabint( int16_t number );
 
Description: The XBIOS routine Jenabint re-enables a designated type of interrupt that is specified by number on the multi-functional peripheral port. The parameter number refers to the following interrupts:
 

number Description
 0 I/O-port bit 0 busy parallel port
 1 RS-232 DCD
 2 RS-232 CTS
 3 Blitter
 4 Timer D, RS-232 Baud generator
 5 Timer C, 200 Hz system clock
 6 Keyboard and MIDI
 7 FDC and DMA
 8 Timer B line flyback
 9 RS-232 transmit error
10 RS-232 transmit buffer empty
11 RS-232 receive buffer full
12 RS-232 buffer full
13 Timer A
14 RS-232 RI
15 Monochrome monitor detect
Return value: The function does not return a result.
 
Availability: All TOS versions.
 
Group: Interrupt functions
 
See also: Binding   Jdisint   Mfpint
 

4.13.2.1 Bindings for Jenabint

C: #include <tos.h>
 
void Jenabint( int16_t number );
 
Assembler:
 
move.w    number,-(sp)  ; Offset 2
move.w    #27,-(sp)     ; Offset 0
trap      #14           ; Call XBIOS
addq.l    #4,sp         ; Correct stack

Home XBIOSXBIOS Hatari DHS XBIOS extensionHatari DHS XBIOS extension Drive functionsDrive functions