Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function DoSomething(y: cardinal): cardinal;
begin
Result := y AND $FF00;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(format('0x%x',[ dosomething($1234)]));
end;
function DoSomething(y: cardinal): cardinal;
begin
asm
mov eax,y
and eax,$FF
mov Result, eax
end;
end;
Edit1.Text := FloatToStr(($CA7AB569 AND $FF000000) div $1000000);
procedure DecimalToIP(const IP: LongWord; var IP1, IP2, IP3, IP4: Integer);
begin
asm
// IP Highest pair
mov eax,IP
shr eax,24
and eax,$FF
mov IP1, eax
// IP "almost" highest pair
mov eax,IP
shr eax,16
and eax,$FF
mov IP2, eax
// IP "almost" lowest pair
mov eax,IP
shr eax,8
and eax,$FF
mov IP3, eax
// IP lowest pair
mov eax,IP
and eax,$FF
mov IP4, eax
end;
end;
procedure DecimalToIP(const IP: LongWord; var IP1, IP2, IP3, IP4: Integer);
begin
ip1 := ( ip and $FF000000 ) shr 24;
ip2 := ( ip and $00FF0000 ) shr 16;
ip3 := ( ip and $0000FF00 ) shr 8;
ip4 := ( ip and $000000FF );
end;