I found this code in the FPC manual (section 7.2.12):

http://deug-stpi.gavysn.univ-nantes....00000000000000

But it doesn't compile for me :? Is anybody able to compile it? What settings do you use? Or is it un-updated... the assembly looks weird, not like TASM syntax. Indeed I have been successful at compiling asm code for VGA with FPC, and the old TASM syntax just works fine. No idea why they use those "%" everywhere, and removing them doesn't help at all.

Anyway what I want is just reading the keyboards raw data like in the old days. I don't want to use the keyboard unit, since it doesn't detects when keys are released.

Thanks!
-Marco