#include <iostream.h>
#include <dos.h>

int main()

{
	cout << "Checking Memory...\n";


	asm {
			mov	ax,0000
			mov	bx,0000
			mov	dx,es
here:
			mov	[bx],ah
			inc	bx
			cmp	bx,0ffffh
			jnae	here
			inc	dx
			mov	es,dx
			mov	bx,0000
			jmp 	here
			}

	return 0;

}
