I am trying to write a very simple C program in which I am trying to write to the memory on my computer in DOS. This is what I am trying to do.

Say I have the data stored as:
Code:
short data=0x1111;
and my memory location and size is defined as follow:
Code:
#define ADDRESSOFMEMORY 0xe0000 //address of memory
#define SIZEOFMEMORY 0x4000  //size of meory
Basically I am trying to write the data (0x1111) at the memory map location 0xe000.

How can I do that?