I got a problem with assembler in pascal. Im working on writing/reading files containing integers ( file of integer). To read from the file i use a loop including asm instructions ( h13 graphics)and read(file,var) function. The code compiles but after executing it returns an error : INVALID FILE HANDLING. When i put the read(file,var) outside of the loop the error no more occurs but i need it inside... what can be wrong?