System Functions; Return Cpu Type - Octagon Systems XE–700 Reference Manual

Table of Contents

Advertisement

Comments:
Programming example:
/* Inline assembly code for Borland C++ 3.1 */
unsigned char majorVersion;
unsigned char minorVersion;
unsigned char versionLetter;
/* Inline assembly code for Borland C++ 3.1 */
asm {
MOV AX, 0fb00h
MOV DX, 0ffffh
INT 17h
MOV majorVersion, AL
MOV minorVersion, AH
MOV versionLetter, BL
}

System functions

The XE–700 has two additional INT 17 functions; Return CPU Type and Get
Functions Implemented.

Return CPU Type

This function returns the CPU type and the system clock speed.
Function:
Sub-Function:
Purpose:
Calling Registers:
Return Registers:
returns 2)
AH
Minor version number (e.g. Version 2.10
returns 10)
BL
Version letter (e.g. Version 2.10B returns
'B')
Carry flag set if error
AL
Error code
This function returns the version number of the
BIOS extension
0fbh
01h
To obtain the CPU type and clock speed
CL
01h
AL
01h
DX
0ffffh
Carry flag cleared if successful
A1
Hclock speed
0x00 = 25 MHz
0x04 = 50 MHz
0x08 = 60 MHz
0x0C = 66 MHz
CL
0x01 STPC Atlas
0x00 not Atlas
CH
Clock multiplier
91

Advertisement

Table of Contents
loading

Table of Contents