segread Function intdos and intdosx Functions Declaration reads the segment registers general DOS interrupt interfaces

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

segread Function

This function has been defined in dos.h. This function reads the segment registers. The declaration of the function is as follows:

void segread(struct SREGS *segp);

where segread puts the current values of the segment registers into the structure *segp. Nothing is returned by the function and the call is intended for use with intdosx and int86x. let us see an example:

#include <stdio.h>
#include <dos.h>

void main()
{
struct SREGS segs;

segread(&segs);
printf("Current segment register settings\n\n");
printf("CS: %X DS: %X\n", segs.cs, segs.ds);
printf("ES: %X SS: %X\n", segs.es, segs.ss);

getch();
}

And the output of the program will be something like this:

Current segment register settings

CS: EED DS: 10BA
ES: 10BA SS: 10BA

intdos and intdosx Functions

These functions have been defined in dos.h. These are the general DOS interrupt interfaces. The function intdos invokes MS-DOS service registers then DX and AL where the function intdosx invokes MS-DOS service with segment register values.

The Declaration of the intdos function is as follows:

int intdos(union REGS *inregs, union REGS *outregs);

and the declaration of intdosx function is as:

int intdosx(union REGS *inregs, union REGS *outregs,
struct SREGS *segregs);

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20


page 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 
Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor