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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Read/Parse PDB file to ge...
by
LeP
[
Today
at 04:12:58 pm]
Dark Theme
by
NickyTi
[
Today
at 04:11:34 pm]
StringGrid: which is "cur...
by
jamie
[
Today
at 04:10:34 pm]
Artificial Intelligence a...
by
LeP
[
Today
at 04:00:00 pm]
Can /my/ AI help me with ...
by
microxa
[
Today
at 03:51:48 pm]
is this code correct?
by
ginoo
[
Today
at 03:46:50 pm]
Nothing but chaotic attem...
by
LeP
[
Today
at 03:41:19 pm]
search via TSQLQuery
by
CraigC
[
Today
at 03:38:37 pm]
P.I.S.S. a PlugIn-framewo...
by
hedgehog
[
Today
at 03:05:10 pm]
Linking a PortAudio stati...
by
bbrx
[
Today
at 02:44:37 pm]
FPC Unleashed (inline var...
by
valdir.marcos
[
Today
at 02:44:02 pm]
Database files reader. Di...
by
valdir.marcos
[
Today
at 02:33:27 pm]
AdvancedHTTPServer: A Go-...
by
valdir.marcos
[
Today
at 02:32:51 pm]
Feature suggestion - repe...
by
cdbc
[
Today
at 01:49:36 pm]
Pls support Double Comman...
by
Tomxe
[
Today
at 11:52:40 am]
TLazSerial : serial port ...
by
LeP
[
Today
at 11:13:15 am]
Typelibrary in my own lib...
by
Thaddy
[
Today
at 10:07:04 am]
[solved including for Ger...
by
Nicole
[
Today
at 09:45:45 am]
Release ray4laz 6.0
by
YiannisKam
[
Today
at 09:34:44 am]
Flamerobin error-message
by
valdir.marcos
[
Today
at 08:30:07 am]
LAME MP3 encoder
by
valdir.marcos
[
Today
at 07:54:46 am]
Ap Mdi forms we can chang...
by
Thaddy
[
Today
at 06:50:59 am]
Connecting to AzureSQL
by
Thausand
[
Today
at 02:03:21 am]
TurboBird IBX
by
valdir.marcos
[
Today
at 01:18:01 am]
Accessing the "registry" ...
by
valdir.marcos
[
Today
at 01:12:32 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Negative offset (Read 833 times)
LemonParty
Sr. Member
Posts: 465
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: 2492
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
Sr. Member
Posts: 465
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