Mail Archives: djgpp/1997/11/26/15:54:26
At 12:22 11/25/1997 GMT, QBall1723 wrote:
>Here are a couple of macros I found at a DJGPP assembly FAQ somewheres.... I've
>posted them elsewhere... as part of a reply to someone else's question...
>
> ...perhaps it's psychological... but I believe these will clear (set) and
>copy memory faster than the library function move_data... or dosmemput (I
>believe dosmemput only uses bytes... but I'm not certain of this...)
(Btw, the function is called `movedata', no underline)
They probably will go faster than `movedata', but only slightly. Basically
you just avoid the overhead of the function call and the check for excess
bytes. `dosmemput' just calls `movedata' with selectors of `_dos_ds' and
`_my_ds()', so it uses mostly longwords, same as `movedata'.
If you want to use the macros, you might consider making them inline
functions instead. IMHO, it's cleaner.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -