This is an old version from the tos.hyp. The new is on GitHub!

HomeXBIOSCENTScreen XBIOS extensionCT60 XBIOS extension

4.7 Crazy-Dots XBIOS extension

Note:
These functions are only available under Crazy-Dots; they are not routines of the operating system.

4.7.1 GetScreenDescriptor

Name: »GetScreenDescriptor« -
Opcode: 194
Syntax: See Bindings for GetScreenDescriptor
Description:
Return value: 194L = XBIOS call is not installed (no Crazy-Dots software installed).
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.1.1 Bindings for GetScreenDescriptor

C: SCREEN xbios( 194 );
Assembler:
move.w    #194,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.2 ResetScreen

Name: »ResetScreen« -
Opcode: 195
Syntax: See Bindings for ResetScreen
Description: Re-initializes the graphics controller with the data held in "Screen->ModStruct" - as a rule, therefore, the current resolution. Serves well as an "emergency brake" for failed attempts when you have tried to alter the registers, for instance.
Return value: None
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.2.1 Bindings for ResetScreen

C: void xbios( 195 );
Assembler:
move.w    #195,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.3 GetNumberofPModes

Name: »GetNumberofPModes« -
Opcode: 196
Syntax: See Bindings for GetNumberOfPModes
Description: Obtain number of available physical resolutions.
Return value: Number of available physical resolutions.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.3.1 Bindings for GetNumberOfPModes

C: int32_t xbios( 196 );
Assembler:
move.w    #196,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.4 GetPMode

Name: »GetPMode« -
Opcode: 197
Syntax: See Bindings for GetPMode
Description: n: Number of the modes (0 <= n <= GetNumberofPModes)
Return value: Pointer to a MOD_DESC structure.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.4.1 Bindings for GetPMode

C: MOD_DESC xbios( 197, int16_t n);
Assembler:
move.w    n,-(sp)      ; Offset 2
move.w    #197,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #6,sp        ; Correct stack

4.7.5 ReadMode

Name: »ReadMode« -
Opcode: 198
Syntax: See Bindings for ReadMode
Description: Lists the graphics mode described by (MOD_DESC *) GetPMode in a buffer (PMODE structure).

n: Number of the modes (0 <= n <= GetNumberofPModes)
Return value: Pointer to a PMODE structure.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Gruppe: Crazy-Dots XBIOS extension
See also: Binding

4.7.5.1 Bindings for ReadMode

C: PMODE xbios( 198, int16_t n );
Assembler:
move.w    n,-(sp)      ; Offset 2
move.w    #198,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #6,sp        ; Correct stack

4.7.6 CopyModeToActiveMode

Name: »CopyModeToActiveMode« -
Opcode: 199
Syntax: See Bindings for CopyModeToActiveMode
Description: Makes the mode loaded with ReadMode the active mode. Afterwards it still has to be loaded with ResetScreen into the video controller.
Return value: None.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Gruppe: Crazy-Dots XBIOS extension
See also: Binding

4.7.6.1 Bindings for CopyModeToActiveMode

C: void xbios( 199 );
Assembler:
move.w    #199,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.7 ActiveModeNumber

Name: »ActiveModeNumber« -
Opcode: 200
Syntax: See Bindings for ActiveModeNumber
Description:
Return value: Number of the current video mode.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Gruppe: Crazy-Dots XBIOS extension
See also: Binding

4.7.7.1 Bindings for ActiveModeNumber

C: int16_t xbios( 200 );
Assembler:
move.w    #200,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.8 GetActiveModeDesc

Name: »GetActiveModeDesc« -
Opcode: 201
Syntax: See Bindings for GetActiveModeDesc
Description:
Return value: Pointer to the PMODE structure of the current graphics mode.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Gruppe: Crazy-Dots XBIOS extension
See also: Binding

4.7.8.1 Bindings for GetActiveModeDesc

C: PMODE xbios( 201 );
Assembler:
move.w    #201,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.9 GetRegisterbase

Name: »GetRegisterbase« -
Opcode: 202
Syntax: See Bindings for GetRegisterbase
Description:
Return value: Base address of the Crazy-Dots registers.
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.9.1 Bindings for GetRegisterbase

C: int32_t xbios( 202 );
Assembler:
move.w    #202,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.10 GetFeatures

Name: »GetFeatures« -
Opcode: 203
Syntax: Bindings for GetFeatures
Description: Returns information about installed Crazy-Dots extensions.
Return value:

Bit Installed extension
0 ECL interface (pixel clock to 140 MHz, monochrome)
1 Genlock interface
2 12-bit pixels (4096 colours)
3 16-bit pixels (65536 colours)
4 24-bit pixels (TrueColor)
5 32-bit pixels (TrueColor + 8-bit overlay)
6 4-bit pixels (nibble mode, pixel clock to
   160 MHz, colour)
7-31 Reserved
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.10.1 Bindings for GetFeatures

C: int32_t xbios( 203 );
Assembler:
move.w    #203,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

4.7.11 GetActiveFeatures

Name: »GetActiveFeatures« -
Opcode: 204
Syntax: See Bindings for GetActiveFeatures
Description: Returns information about installed and active Crazy-Dots extensions.
Return value:

Bit Installed extension
0 ECL interface (pixel clock to 140 MHz, monochrome)
1 Genlock interface
2 12-bit pixels (4096 colours)
3 16-bit pixels (65536 colours)
4 24-bit pixels (TrueColor)
5 32-bit pixels (TrueColor + 8-bit overlay)
6 4-bit pixels (nibble mode, pixel clock to
   160 MHz, colour)
7-31 Reserved
Availability: This function is only available if the driver for the Crazy-Dots graphics card has been launched.
Group: Crazy-Dots XBIOS extension
See also: Binding

4.7.11.1 Bindings for GetActiveFeatures

C: int32_t xbios( 204 );
Assembler:
move.w    #204,-(sp)   ; Offset 0
trap      #14          ; Call XBIOS
addq.l    #4,sp        ; Correct stack

HomeXBIOSCENTScreen XBIOS extensionCT60 XBIOS extension