[fpc-pascal]Intel ASM syntax problem

Aitor Santamaria Merino aitor.sm at terra.es
Mon Jun 25 17:17:49 CEST 2001


Hi all,

I am trying to compile this (which compiles under TP): (using asm and
{$ASMMODE Intel}):

(66) mov word ptr ds:ControlBlk25[bx].StartSector,ax
(67) mov word ptr ds:ControlBlk25[bx].StartSector[2],ax


where 
 ControlBlk25  = record   { control block for INT 25 extended call }
   StartSector : LongInt; { start sector to read }
   Count       : Word;    { number of sectors to read }
   BufferOffs  : Word;    { data buffer offset }
   BufferSeg   : Word;    { data buffer segment }
 end;


The problem appears when it reaches the [bx]:
drvscan.pp(66,18) Fatal: Syntax error, [ expected but identifier found

Any alternative/correction?

Aitor




More information about the fpc-pascal mailing list