The BIOS function in the 8086 microprocessor is called an interrupt function. It is an interrupt function because it is not called by a function call instruction.
the following steps are required to invoke a rom-bios function 1)make an interrupt to occur 2)find out the number of the interrupt that has occurred. 3)obtain from IVT,the address of the ISR which services this interrupt. 4)push the current values of CPU register onto the STACK
There are more than one of them, the most important DOS interrupt is 21H. Consult the related link.
Interrupt generated by executing an instruction is called software interrupt. It's also called 'trap'. Software interrupts are generally used to make system calls i.e. to request operating system to perform an I/O operation or to run a new program.Examples:C++:A cout or cin statement would generate a software interrupt because it would make a system call to print something.A fork() statement in Linux would generate a software interrupt because it would make a system call to create a new process.Assembly IA32:The instruction int 21h would generate a software interrupt which would request something from operating system (depending on the register values).
BIOS is the basic input output system provides a routine procedure, and use a program written in BIOS features simple, readable, and easy to transplant. PC-DOS is the most important operating system, as it includes nearly a BIOSdevice management, directory management and file management procedures, is a fully featured, easy to use collection of the interrupt routine. Using the DOS operatingusing the appropriate functions of the BIOS than the operation more simple and lessdependent on some of the hardware. BIOS functions and DOS functions are called by software interrupts. Need tointerrupt the function number before the call into the AH register, handle the function number into the AL register, besides, usually need to register in the CPU to provide specialized call parameters. In general, DOS or BIOS function calls, has the followingbasic steps: 1, the call parameters into the specified register; 2, for the function number, put it into the AH; 3, for sub-function number, put it into the AL; 4, according to interruption of DOS or BIOS interrupt call; 5, check the return parameters are correct. BIOS and DOS interrupt interrupt the relationship shown in Figure 9.1. In the memory system, starting from the address 0FE000H 8K ROM (read-only memory) is equipped with a BIOS (Basic Iuput / output System) routine. Reside in theROM BIOS in the PC series of different microprocessors to provide a compatible system POST, boot loader, the main I / O devices and the interface control processfunction modules to handle all system interrupts. Use BIOS calls that bring great convenience to the programmer programming, programmers do not understand the details of hardware operation, the direct use of instruction set parameters, and thencall the BIOS interrupt the sub-function, so programs written using simple BIOSfunction can be Reading is good, and easy to transplant. DOS (Disk Operating System) is the most important PC, operating system, which isprovided by the floppy or hard disk. Its two DOS BIOS module IBMBIO.COM andIBMDOS.COM the more convenient to use because more and DOS module providesthe necessary tests, the DOS operating the corresponding functions of the BIOS than the use of more simple operation, but the hardware DOS Dependence less.
Interrupt Request
The CMOS contains user-defined settings for the BIOS. The Bios is a program that contains hardware instructions on how to start the computer.
A computer BIOS initializes and tests the CPU, RAM, chipset, video card, keyboard, hard drive, optical disk drive, floppy drive, and interrupt handlers. Additionally, the bios will check ports on a computer.
1)an interrupt routine must not call any rtos function that bmight block the caller inthe future2)an interrupt routine may not call any rtos function that might cause rtos to switch task unless the rtos knows that an interrupt routine is not a task executive.
Bios rom
AnswerA Computers ROM BIOS's primary 'responsibility' is to identify the components attached to the Mother Board, assign them IRQ's (Interrupt Request lines), and then perform the POST (Power On Self Test), prior to accessing a boot device and loading an OS (operating system). BIOS itself stands for "Basic Input Output System" which is self describing of its function, a hardware IO system to allow computer components to work with each other.
It depends on the CPU architecture. Most modern CPUs support several levels of interrupts ranging from high priority to low. If the first interrupt that occurred was a high priority, then a lower priority one occurs, the high priority will continue to execute until it is done, then the the CPU will immediately jump to the lower one. Conversely, if the lower priority interrupt occurred first, it will be interrupted until the higher interrupt is serviced. For 80x86 series processors, do not confuse priority with vector. You may remember in the older days interrupt 13 belonging to the hard drive, and interrupts 3 and 4 being part of the serial port. This is not a function of the CPU but of the interrupt controller. The function of this device is beyond the scope of my answer here. 80x86 has 2 interrupt sources: maskable and non-maksable. Think of the non-maskable as the higher priority and the maskable as the lower. Most peripherals use the maskable interrupt line. Although a few, often functions of the BIOS, Fault, or Paged/Protected mode make use of the non-masked interrupt.