Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Negative offset
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
Variable number of button...
by
Fibonacci
[
Today
at 05:29:12 am]
LAMW complaining about "A...
by
nobody.00
[
Today
at 04:14:57 am]
FPC 3.2.4-rc1 available
by
dbannon
[
Today
at 02:18:35 am]
OpenDialog is too big and...
by
user5
[
Today
at 12:54:27 am]
Has anyone loaded ReactOS...
by
d2010
[June 23, 2025, 10:50:40 pm]
How do you place a breakp...
by
Hansvb
[June 23, 2025, 09:29:48 pm]
Output folder?
by
TBMan
[June 23, 2025, 08:32:57 pm]
TTask 'file not found' er...
by
sollapse
[June 23, 2025, 08:31:10 pm]
Sqlite & Zeos
by
Handoko
[June 23, 2025, 07:32:23 pm]
Why is -Cg forced and can...
by
n7800
[June 23, 2025, 06:42:42 pm]
TaurusTLS 1.0.0.25 beta 2...
by
Handoko
[June 23, 2025, 06:38:14 pm]
Replace controls dynamica...
by
n7800
[June 23, 2025, 06:14:54 pm]
Has the function of findi...
by
n7800
[June 23, 2025, 05:22:05 pm]
My second "paint" program
by
TBMan
[June 23, 2025, 05:05:26 pm]
DBF / DBGRID
by
Handoko
[June 23, 2025, 04:08:46 pm]
WinInet compiling errors.
by
PascalDragon
[June 23, 2025, 03:03:07 pm]
What WinAPI functions can...
by
PascalDragon
[June 23, 2025, 02:52:05 pm]
[SOLVED] Shenanigans with...
by
Gustavo 'Gus' Carreno
[June 23, 2025, 12:32:00 pm]
Color change without cons...
by
HMM
[June 23, 2025, 12:18:15 pm]
[SOLVED] Are there units ...
by
Gustavo 'Gus' Carreno
[June 23, 2025, 11:16:37 am]
Loop Iteration Speed Test
by
paweld
[June 23, 2025, 11:13:59 am]
Status and Maintenance of...
by
Thaddy
[June 23, 2025, 09:53:53 am]
Inheritance of Classes th...
by
Thaddy
[June 23, 2025, 09:31:25 am]
Trouble compiling fpc for...
by
ermok
[June 23, 2025, 09:22:20 am]
A Tutorial for LazReport
by
Thaddy
[June 23, 2025, 09:12:25 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 586 times)
LemonParty
Full Member
Posts: 185
Negative offset
«
on:
May 18, 2025, 06:05:47 pm »
I notice when compile code like this:
Code: Pascal
[Select]
[+]
[-]
mov qword ptr
[
rsp
-
8
]
,
rsi
compiler give warning
Quote
Warning: Use of [RSP-offset], access may cause a crash or value may be lost
What can be done with this or this warning may be ignored?
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
ASerge
Hero Member
Posts: 2424
Re: Negative offset
«
Reply #1 on:
May 18, 2025, 10:16:37 pm »
Code: Pascal
[Select]
[+]
[-]
{$PUSH}
{$WARN 7105 off : Use of $1, access may cause a crash or value may be lost}
mov qword ptr
[
rsp
-
8
]
,
rsi
{$POP}
Logged
LemonParty
Full Member
Posts: 185
Re: Negative offset
«
Reply #2 on:
May 19, 2025, 12:58:11 pm »
Thank you.
Logged
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Negative offset
TinyPortal
© 2005-2018