4 #include <sys/farptr.h>
6 void fb_hFarMemSet(
unsigned short selector,
unsigned long dest,
unsigned char char_to_set,
size_t bytes)
8 unsigned long addr = dest;
13 for (i = 0; i < bytes; i++, addr++) {
14 _farnspokeb(addr, char_to_set);
18 void fb_hFarMemSetW(
unsigned short selector,
unsigned long dest,
unsigned short word_to_set,
size_t words)
20 unsigned long addr = dest;
25 for (i = 0; i < words; i++, addr += 2) {
26 _farnspokew(addr, word_to_set);