Application Examples
/* -------------------------------------------------------- */
/* Get expanded memory page frame address.
*/
/* -------------------------------------------------------- */
if (!get_page_frame_address (&pf_addr))
exit (1);
/* -------------------------------------------------------- */
/* Write to expanded memory.
*/
/* -------------------------------------------------------- */
for (index = 0; index < 0x3fff; index++)
pf_addr[index] = index;
/* -------------------------------------------------------- */
/* Return expanded memory pages before exiting.
*/
/* -------------------------------------------------------- */
if (!deallocate_expanded_memory_pages (emm_handle))
exit (1);
}
4-11
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com