Discuss Rep Insw Assembler in the Other Programming Languages forum on Dev Shed. Rep Insw Assembler A place for discussing programming languages not covered in specific forums such as Assembler, COBOL, etc. - you get the idea.
Posts: 64
Time spent in forums: 10 h 6 m
Reputation Power: 0
Rep Insw Assembler
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.
Location: Woodland Hills, Los Angeles County, California, USA
Posts: 9,389
Time spent in forums: 1 Month 4 Weeks 1 Day 22 h 17 m 29 sec
Reputation Power: 4080
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
Posts: 5,538
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 30 m 28 sec
Reputation Power: 1050
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