[fpc-devel]Calling previous INTroutine

Jonas Maebe jonas at zeus.rug.ac.be
Wed Dec 13 15:06:33 CET 2000


>procedure datasegment; assembler;
>asm
>  dw 0
>end;
[cut]
>procedure Int00End;
>begin
>end;
>
>
>  // later... setting up things
>  asm
>    mov  ax,ds
>    mov  ebx,offset datasegment
>    mov  word ptr [ebx],ax

I just looked again at this and this is wrong: this should be

mov word ptr cs:[ebx],ax

(although using the ds alias stuff already solved this problem for you)


Jonas




More information about the fpc-devel mailing list