|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
How to program with REP INSW command?
I have Borland 3 compiler and Win98. The short description about this command: (from CIO-DAS16/330i ) REP INSW (Repeat Input String) is a 286/386/486 class CPU instruction which allows the PC to transfer large amounts of data using one instruction. The data is transferred at the maximum rate allowed by the bus. On a typical 286 AT, this rate is 2Mbyte/sec or 1 sample every microsecond. In order to employ REP INSW the A/D board must have a FIFO buffer to accumulate sample data. The CIO-DAS16/330 has a 1024 sample buffer. When it is half full (512 samples), an interrupt generated by the DAS16/330 starts an interrupt service routine which executes the instruction REP INSW, transfers the data to PC memory and empties the FIFO buffer. The data is transferred completely in the background and no unrea-sonable demands are placed on the PC's resources. For example, screen updates need not be suspended! REP INSW is the same method LAN and disk controllers employ. Thanks in advance, gintare |
|
#2
|
||||
|
||||
|
I'm not exactly sure what you're asking, but Borland's compilers have supported the asm keyword for a long time. You can use it to embed assembly language instructions in your C code.
Code:
void somefunc() {
int x = 5;
/* More C code up here */
x++;
/* Now for some asm code */
asm {
REP INSW;
}
/* More C code */
}
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
||||
|
||||
|
I found this on a quick google. It's an IDE driver for DamnSmallOS. It uses rep insw for input and rep outsw for output.
They're rather similar to a windows thing called i/o completion ports where you can let things go on in the background and pick up the results when it lets you know they finished, or so i gather they are anyway
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#4
|
||||
|
||||
|
>>golliwog disagrees: hey man - you don't really claim that genius quote do you?
WTF? o_O |
|
#5
|
||||
|
||||
|
Quote:
As far as I've been able to google, it's a Jonathan Price quote. Funny, I always thought that it was an Einstein quote. |
|
#6
|
||||
|
||||
|
meh, i'm not fussed, the person is an idiot if you look at his rep history...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Rep Insw Assembler |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|