Mail Archives: djgpp/1996/01/03/04:08:34
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:4096
|
Path: | news-dnh.mv.net!mv!barney.gvi.net!news.netrail.net!imci2!newsfeed.internetmci.com!dnaco.net!eheft
|
From: | eheft AT sisko DOT dnaco DOT net (Eric Heft)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Easy Asm Conversion?
|
Date: | 3 Jan 1996 03:26:28 GMT
|
Organization: | The Dayton Network Access Company (DNACo)
|
Lines: | 25
|
Message-ID: | <4cct14$62v@sisko.dnaco.net>
|
NNTP-Posting-Host: | eheft AT kirk DOT dnaco DOT net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi, I'm not to good with asm, but would like to translate the
following code from a paper. Its just a wait for Vertical
Retrace which is used by another system to do frame syncs.
Here is the TC code: If some kind soul would translate this
It should be easy but I've never really learned asm :(
void WaitForRetrace(void)
{
asm MOV DX,3DAh
WR1:
asm IN AL,DX
asm AND AL,0008h
asm JNZ WR1
WR2:
asm IN AL,DX
asm AND AL,0008h
asm JZ WR2
}
Thanks in Advance. [BTW : I did read though the gas-docs.txt but
haven't been able to get my attempt at converting to work] Oh and
I'm using v2beta3.
-- Eric
- Raw text -