hello,
I want to know for what purpose union REGS and struct SREGS are
used in windows programming? also how following code an determine that
running OS is windows?
in_regs.x.ax = 0x160A;
int86x(0x2F, &in_regs, &out_regs, &seg_regs);
if (out_regs.x.ax == 0)
Running_WIN=TRU E;
provided here
union REGS in_regs, out_regs;
struct SREGS seg_regs; 5 8174 ra*******@gmail .com wrote: hello, I want to know for what purpose union REGS and struct SREGS are used in windows programming? also how following code an determine that running OS is windows?
<snip>
Off-topic. Take it to comp.os.ms-windows.program mer, please.
S. ra*******@gmail .com wrote in news:1128534736 .435075.269810
@g49g2000cwa.go oglegroups.com: hello, I want to know for what purpose union REGS and struct SREGS are used in windows programming?
Hmmm ... Wrong group. Try comp.os.ms-windows.program mer.*
also how following code an determine that running OS is windows? in_regs.x.ax = 0x160A; int86x(0x2F, &in_regs, &out_regs, &seg_regs); if (out_regs.x.ax == 0) Running_WIN=TRU E; provided here union REGS in_regs, out_regs; struct SREGS seg_regs;
You would need to find out what int86x does, and then find out the
meanings of the parameters, and figure out what interrupt 0x2f does on
Windows. Google is your friend. Look for "Ralph Brown's Interrupt List".
Sinan
--
A. Sinan Unur <1u**@llenroc.u de.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl. misc guidelines on the WWW: http://mail.augustmail.com/~tadmc/cl...uidelines.html
<ra*******@gmai l.com> wrote in message
news:11******** **************@ g49g2000cwa.goo glegroups.com.. . I want to know for what purpose union REGS and struct SREGS are used in windows programming? also how following code an determine that running OS is windows?
First of all, these types and the intel 80x86 CPU architecture are beyond
the scope of the standard C, and so is the compiler having support for them.
in_regs.x.ax = 0x160A; int86x(0x2F, &in_regs, &out_regs, &seg_regs); if (out_regs.x.ax == 0) Running_WIN=TRU E; provided here union REGS in_regs, out_regs; struct SREGS seg_regs;
As it has already been pointed out, for more on the DOS/windows interrupts,
see the Ralf Brown's Interrupt List freely available on the net. If you want
to know more about the intel 80x86 CPUs, you're welcome to http://developer.intel.com -- get yourself free intel manuals, called
something like intel ia32 software architecture -- they're 3 volumes under
this name. If you want to know more about REGS and SREGS, please study the
documentation of your compiler. Borland C/C++ compiler for DOS comes with
built in help in the IDE, Watcom C/C++ compiler also comes with the full
documentation -- these are two compilers which I know to support this
feature.
Alex
Alexei A. Frounze wrote: As it has already been pointed out, for more on the DOS/windows interrupts, see the Ralf Brown's Interrupt List freely available on the net. If you want to know more about the intel 80x86 CPUs, you're welcome to http://developer.intel.com -- get yourself free intel manuals, called something like intel ia32 software architecture -- they're 3 volumes under this name. If you want to know more about REGS and SREGS, please study the documentation of your compiler. Borland C/C++ compiler for DOS comes with built in help in the IDE, Watcom C/C++ compiler also comes with the full documentation -- these are two compilers which I know to support this feature.
Alex
AND PLEEEEEESE REMEMBER:
THAT WILL NOT WORK UNDER WINDOWS!!!
"jacob navia" <ja***@jacob.re mcomp.fr> wrote in message
news:43******** **************@ news.wanadoo.fr ... Alexei A. Frounze wrote: As it has already been pointed out, for more on the DOS/windows
interrupts, see the Ralf Brown's Interrupt List freely available on the net. If you
want to know more about the intel 80x86 CPUs, you're welcome to http://developer.intel.com -- get yourself free intel manuals, called something like intel ia32 software architecture -- they're 3 volumes
under this name. If you want to know more about REGS and SREGS, please study
the documentation of your compiler. Borland C/C++ compiler for DOS comes
with built in help in the IDE, Watcom C/C++ compiler also comes with the full documentation -- these are two compilers which I know to support this feature.
Alex
AND PLEEEEEESE REMEMBER: THAT WILL NOT WORK UNDER WINDOWS!!!
Not as part of a win32 program, that's for sure. The O.P. didn't say he
would execute that code in a win32 app.
Alex This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Reed L. O'Brien |
last post by:
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an AES module that works alike but with better encryption?
cheers,
reed
|
by: Yannick Benoit |
last post by:
Hi!
I use this to find all links in a page :
*(href)*=*(+)
but recently i found out that it only works if links are setup this way: <a
href = "...
I would like to know if someone can help me find the proper expression which
would work with <a href = "... <a href= "... <a href="... and <a href ="...
|
by: tombsy |
last post by:
Please can you tell me what version of DAO does access 2002/2003 use ?
Access 97/2000 can use DAO3.5 and DAO3.6
Can I compact a 2002/2003 db using DAO 3.6?
thanks in advance
regs Tombsy
|
by: Bruno Barros |
last post by:
Hello,
I don´t know if union REGS <dos.h> is part of this group, but i have
a problem. At the moment i use turboc++lite and i don´t have reply
when i execute the question code. Only a black screen! Anyone help me?
What´s is wrong? This code return the DOS version.
#include <stdio.h>
#include <dos.h>
#include <conio.h> //use getch() e clrscr()
|
by: Frederick Gotham |
last post by:
If we look at a programming language such as C++: When an updated Standard
comes out, everyone adopts it and abandons the previous one.
It seems though that things aren't so clear-cut in the C community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.
Could someone please explain to me why this is so?
--
| |
by: kushmanr |
last post by:
hi
i am having to problems:
interrupt decleration doesn`t compile:
void _interrupt _far terminal_isr()
.......
_dos_setvect(0xC,terminal_isr)
: error C4226: nonstandard extension used : '_far' is an obsolete keyword
: error C2061: syntax error : identifier 'terminal_isr'
|
by: balajiv86 |
last post by:
hi
can anyone tell me the book which contains details abt inbuilt union regs in c
|
by: vicky |
last post by:
Hi, i am vikram
Please tell me the usage of REGS key word
how it can be used?
any kind of suggestions will help me.
|
by: no |
last post by:
Thanks- I intend to learn with Microsoft Tools but my plans are to
stay within the embedded industry.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| | |