mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 02:39:40 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			245 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			245 B
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{ %CPU=i386 }
 | 
						|
 | 
						|
 | 
						|
{$asmmode intel}
 | 
						|
 | 
						|
var
 | 
						|
  i,j  : longint;
 | 
						|
 | 
						|
begin
 | 
						|
  i:=56;
 | 
						|
  { this should work as ss and ds have the same selector value }
 | 
						|
  asm
 | 
						|
    segss
 | 
						|
    mov eax,dword ptr [i]
 | 
						|
    mov dword ptr [j],eax
 | 
						|
  end;
 | 
						|
  if i<>j then
 | 
						|
    Halt(1);
 | 
						|
end.
 |