mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 17:28:23 +02:00
23 lines
358 B
ObjectPascal
23 lines
358 B
ObjectPascal
{ %NORUN }
|
|
{ %CPU=i386,x86_64 }
|
|
|
|
program tasm29;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
|
|
TTest = class
|
|
procedure Test(aArg: Pointer); {$ifdef cpu386}register;{$endif} assembler; nostackframe;
|
|
end;
|
|
|
|
procedure TTest.Test(aArg: Pointer); {$ifdef cpu386}register;{$endif} assembler; nostackframe;
|
|
asm
|
|
movb $5, (__SELF, aArg)
|
|
movb $5, (aArg, __SELF)
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|