The pas2js compiler does not know what Pascal identifiers are used by the asm-block and might remove them, if no Pascal code is using them. To make sure that an identifier is kept, add some dummy code like if MyVar=0 then; -- Sent from: http://pas2js.38893.n8.nabble.com/