Mail Archives: djgpp/2001/07/31/21:00:09
From: | "Rafal Maj (Raf256)" <raf256 AT go2 DOT pl>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Assembler
|
Date: | Wed, 1 Aug 2001 02:53:04 +0200
|
Organization: | Academic Computer Center CYFRONET AGH
|
Lines: | 36
|
Message-ID: | <9k7jsa$l5l$1@info.cyf-kr.edu.pl>
|
NNTP-Posting-Host: | d-94-53-26.cyfronet.krakow.pl
|
X-Trace: | info.cyf-kr.edu.pl 996627147 21685 149.156.1.186 (1 Aug 2001 00:52:27 GMT)
|
X-Complaints-To: | news AT cyf-kr DOT edu DOT pl
|
NNTP-Posting-Date: | Wed, 1 Aug 2001 00:52:27 +0000 (UTC)
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I have found quite interesting code, that returns exacly number of CPU
cycles since last reset/power off.
But I have this "program" writtne in Pascal, how can I translate this into
C++ DJGPP inlie asembler ?
1) Can I write assembler instructions anywhere inside C++ code in DJGPP ?
2) How can I wrtie\compile in RHIDE assembler files (any tutuorial ?)
3) Ther are two diffrent syntaxes of ASM AFAIK, with ist best, what are they
names ?
4) AFAIR assembler can be written using functions for calling interrupts,
using
inline($AA/...) statment or in real assebler syntax... I'm most interested
in 3rd
possibility...
"e" - is a hmm... pointer to 64-bit integer
0fh is 0x0F in Pascal
asm
db 0fh, 31h
db 66h
mov c, dx
db 66h
mov e, ax
end;
--
Raf256 C++ TP JAVA 3DMax POV HTML <== Email me if U need developer
,--, _ ,- _ _ _ ,---------------------------------------------,
|,-'`_|_|_ `_||_'|_' | raf256 AT go2 DOT pl http://strony.wp.pl/wp/raf256 |
| `\(_) | |_,,_||_| | upt256 AT wp DOT pl SMS 504-727-464 |
- Raw text -