- Add frame pointer omission information to assembly string functions to fix debugging annoyances. Reviews appreciated

svn path=/trunk/; revision=64974
This commit is contained in:
Thomas Faber 2014-10-25 00:08:23 +00:00
parent 2c42dec0d7
commit 23c10d8d81
9 changed files with 27 additions and 9 deletions

View file

@ -5,7 +5,8 @@
PUBLIC _tcscat
.code
_tcscat:
FUNC _tcscat
FPO 0, 2, 2, 2, 0, FRAME_FPO
push esi
push edi
mov edi, [esp + 12]
@ -28,6 +29,7 @@ _tcscat:
pop edi
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcschr
.code
_tcschr:
FUNC _tcschr
FPO 0, 2, 1, 1, 0, FRAME_FPO
push esi
mov esi, [esp + 8]
mov edx, [esp + 12]
@ -25,6 +26,7 @@ _tcschr:
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcscmp
.code
_tcscmp:
FUNC _tcscmp
FPO 0, 2, 2, 2, 0, FRAME_FPO
push esi
push edi
mov esi, [esp + 12]
@ -30,6 +31,7 @@ _tcscmp:
pop edi
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcslen
.code
_tcslen:
FUNC _tcslen
FPO 0, 1, 1, 1, 0, FRAME_FPO
push edi
mov edi, [esp + 8]
xor eax, eax
@ -25,6 +26,7 @@ _tcslen:
_tcslen_end:
pop edi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcsncat
.code
_tcsncat:
FUNC _tcsncat
FPO 0, 3, 2, 2, 0, FRAME_FPO
push esi
push edi
mov edi, [esp + 12]
@ -38,6 +39,7 @@ _tcsncat:
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcsncmp
.code
_tcsncmp:
FUNC _tcsncmp
FPO 0, 3, 2, 2, 0, FRAME_FPO
push esi
push edi
mov esi, [esp + 12] /* s1 */
@ -36,6 +37,7 @@ _tcsncmp:
pop edi
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcsncpy
.code
_tcsncpy:
FUNC _tcsncpy
FPO 0, 3, 2, 2, 0, FRAME_FPO
push esi
push edi
mov edi, [esp + 12] /* s1 */
@ -30,6 +31,7 @@ _tcsncpy:
pop edi
pop esi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcsnlen
.code
_tcsnlen:
FUNC _tcsnlen
FPO 0, 1, 1, 1, 0, FRAME_FPO
push edi
mov edi, [esp + 8]
mov ecx, [esp + 12]
@ -26,6 +27,7 @@ _tcsnlen:
.L1:
pop edi
ret
ENDFUNC
END
/* EOF */

View file

@ -5,7 +5,8 @@
PUBLIC _tcsrchr
.code
_tcsrchr:
FUNC _tcsrchr
FPO 0, 2, 1, 1, 0, FRAME_FPO
push esi
mov esi, [esp + 8]
mov edx, [esp + 12]
@ -27,6 +28,7 @@ _tcsrchr:
_tdec(eax)
pop esi
ret
ENDFUNC
END
/* EOF */