#resize FALSE
#codesize
#include "TDPMI32.H--"
#include "VRABI.H--"

main(){
  @INITTINYDPMI(); //ES-sel vigyazni
  EDI=400h; //after DPMI host area
  PRINT("TINYDPMI example by VrAbi\n"$);
  PRFRMEM();
  @ALLOCMEM(200h,0); //allocate 20 meg
  PRINT("Allocate 20MB\n"$);
  PRFRMEM();
  PRINT("Free\n"$);
  @FREEMEM();
  PRFRMEM();
  @EXITTINYDPMI();
}

PRFRMEM(){
  PRINT("Free DPMI mem: "$);
  @GETFREEMEM();
  @PRINTDH(DSDWORD[EDI]);
  @PRINTNL();
}


