Diff
checker
Text
Text
Images
Documents
Excel
Folders
Legal
Enterprise
Desktop
Pricing
Sign in
Download Diffchecker Desktop
Compare text
Find the difference between two text files
Tools
History
Real-time editor
Hide unchanged lines
Disable line wrap
Layout
Split
Unified
Diff precision
Smart
Word
Char
Syntax highlighting
Choose syntax
Ignore
Transform text
Go to first change
Edit input
Diffchecker Desktop
The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!
Get Desktop
Assembler output of string parameters without and with const (modify content)
Created
10 years ago
Diff never expires
Clear
Export
Share
Explain
14 removals
Lines
Total
Removed
Characters
Total
Removed
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
39 lines
Copy
20 additions
Lines
Total
Added
Characters
Total
Added
To continue using this feature, upgrade to
Diff
checker
Pro
View Pricing
43 lines
Copy
Copy
Copied
Copy
Copied
P$CONSTPARAMETERSTR_$$_
BYVALUE
$ANSISTRING:
.globl
P$CONSTPARAMETERSTR_$$_
BYREFERENCE$ANSISTRING
P$CONSTPARAMETERSTR_$$_BYREFERENCE
$ANSISTRING:
# Temps allocated between ebp-44 and ebp-4
# Temps allocated between ebp-44 and ebp-4
Copy
Copied
Copy
Copied
# [
16
] begin
# [
24
] begin
pushl %ebp
pushl %ebp
movl %esp,%ebp
movl %esp,%ebp
leal -44(%esp),%esp
leal -44(%esp),%esp
Copy
Copied
Copy
Copied
# Var V located
at ebp-4, size=OS_32
pushl %ebx
movl %eax,
-4(%ebp)
# Var V located
in register ebx
call fpc_ansistr_incr_ref
# Var S located
at ebp-4, size=OS_32
movl %eax,
%ebx
# [27] end;
movl $0,
-4(%ebp)
movl $1,%eax
movl $1,%eax
leal -40(%ebp),%edx
leal -40(%ebp),%edx
leal -16(%ebp),%ecx
leal -16(%ebp),%ecx
call fpc_pushexceptaddr
call fpc_pushexceptaddr
call fpc_setjmp
call fpc_setjmp
pushl %eax
pushl %eax
testl %eax,%eax
testl %eax,%eax
Copy
Copied
Copy
Copied
jne .
Lj7
jne .
Lj11
# [
17] V
:= V + 'x';
# [
25] S
:= V + 'x';
pushl $0
pushl $0
Copy
Copied
Copy
Copied
movl
-4(
%eb
p)
,%edx
movl
%eb
x
,%edx
leal -4(%ebp),%eax
leal -4(%ebp),%eax
movl $.Ld1,%ecx
movl $.Ld1,%ecx
call fpc_ansistr_concat
call fpc_ansistr_concat
Copy
Copied
Copy
Copied
# [
18
] DoIt(
V
);
# [
26
] DoIt(
S
);
movl -4(%ebp),%eax
movl -4(%ebp),%eax
call P$CONSTPARAMETERSTR_$$_DOIT$ANSISTRING
call P$CONSTPARAMETERSTR_$$_DOIT$ANSISTRING
Copy
Copied
Copy
Copied
.
Lj7
:
.
Lj11
:
call fpc_popaddrstack
call fpc_popaddrstack
Copy
Copied
Copy
Copied
# [19] end;
leal -4(%ebp),%eax
leal -4(%ebp),%eax
call fpc_ansistr_decr_ref
call fpc_ansistr_decr_ref
popl %eax
popl %eax
testl %eax,%eax
testl %eax,%eax
Copy
Copied
Copy
Copied
je .
Lj8
je .
Lj12
call fpc_reraise
call fpc_reraise
Copy
Copied
Copy
Copied
.
Lj8:
.
Lj12:
popl %ebx
movl %ebp,%esp
movl %ebp,%esp
popl %ebp
popl %ebp
ret
ret
Saved diffs
Original text
Open file
P$CONSTPARAMETERSTR_$$_BYVALUE$ANSISTRING: # Temps allocated between ebp-44 and ebp-4 # [16] begin pushl %ebp movl %esp,%ebp leal -44(%esp),%esp # Var V located at ebp-4, size=OS_32 movl %eax,-4(%ebp) call fpc_ansistr_incr_ref movl $1,%eax leal -40(%ebp),%edx leal -16(%ebp),%ecx call fpc_pushexceptaddr call fpc_setjmp pushl %eax testl %eax,%eax jne .Lj7 # [17] V := V + 'x'; pushl $0 movl -4(%ebp),%edx leal -4(%ebp),%eax movl $.Ld1,%ecx call fpc_ansistr_concat # [18] DoIt(V); movl -4(%ebp),%eax call P$CONSTPARAMETERSTR_$$_DOIT$ANSISTRING .Lj7: call fpc_popaddrstack # [19] end; leal -4(%ebp),%eax call fpc_ansistr_decr_ref popl %eax testl %eax,%eax je .Lj8 call fpc_reraise .Lj8: movl %ebp,%esp popl %ebp ret
Changed text
Open file
.globl P$CONSTPARAMETERSTR_$$_BYREFERENCE$ANSISTRING P$CONSTPARAMETERSTR_$$_BYREFERENCE$ANSISTRING: # Temps allocated between ebp-44 and ebp-4 # [24] begin pushl %ebp movl %esp,%ebp leal -44(%esp),%esp pushl %ebx # Var V located in register ebx # Var S located at ebp-4, size=OS_32 movl %eax,%ebx # [27] end; movl $0,-4(%ebp) movl $1,%eax leal -40(%ebp),%edx leal -16(%ebp),%ecx call fpc_pushexceptaddr call fpc_setjmp pushl %eax testl %eax,%eax jne .Lj11 # [25] S := V + 'x'; pushl $0 movl %ebx,%edx leal -4(%ebp),%eax movl $.Ld1,%ecx call fpc_ansistr_concat # [26] DoIt(S); movl -4(%ebp),%eax call P$CONSTPARAMETERSTR_$$_DOIT$ANSISTRING .Lj11: call fpc_popaddrstack leal -4(%ebp),%eax call fpc_ansistr_decr_ref popl %eax testl %eax,%eax je .Lj12 call fpc_reraise .Lj12: popl %ebx movl %ebp,%esp popl %ebp ret
Find difference