Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] is it a top_reg or top_ref or top_local?
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
underwater colony (inc)
by
speter
[
Today
at 09:52:43 am]
Run as a different user
by
MarkMLl
[
Today
at 09:30:49 am]
tform does not show color...
by
Crore
[
Today
at 09:28:52 am]
Get "serial number" of (r...
by
Hartmut
[
Today
at 08:48:22 am]
Draw Behind Desktop Icons...
by
atroesch
[
Today
at 07:38:05 am]
Cross-platform rich text
by
LV
[
Today
at 06:08:38 am]
Synapse mail
by
ginoo
[
Today
at 05:56:29 am]
record fields alignment
by
440bx
[
Today
at 04:44:09 am]
Is this a Sequoia or Rose...
by
jwdietrich
[
Today
at 12:12:40 am]
Is this a Sequoia or Rose...
by
MISV
[November 16, 2025, 11:48:23 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[November 16, 2025, 11:13:42 pm]
Store directories and fil...
by
jamie
[November 16, 2025, 11:11:54 pm]
Help with search and repa...
by
Thausand
[November 16, 2025, 10:55:26 pm]
Converting bitmaps into a...
by
dergen
[November 16, 2025, 10:42:11 pm]
SameGame
by
marcov
[November 16, 2025, 09:55:57 pm]
How to change the grid-si...
by
dsiders
[November 16, 2025, 09:40:24 pm]
Free resources for Lazpai...
by
circular
[November 16, 2025, 09:38:20 pm]
Mapping Images Like Odome...
by
circular
[November 16, 2025, 09:36:27 pm]
Porting PDF Viewer from D...
by
domasz
[November 16, 2025, 09:35:22 pm]
Lowercase Drive in LAZ 4....
by
Martin_fr
[November 16, 2025, 08:09:07 pm]
Problem with Qt5 on macOS
by
mischi
[November 16, 2025, 07:44:29 pm]
New Mac mini M4 - FPC 3.2...
by
mischi
[November 16, 2025, 07:30:38 pm]
Add new unit to a Lazarus...
by
Lulu
[November 16, 2025, 06:34:27 pm]
[SOLVED - Sort of!] Print...
by
AgriMensor
[November 16, 2025, 06:27:08 pm]
Lazarus broke my project
by
jamie
[November 16, 2025, 05:57:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] is it a top_reg or top_ref or top_local? (Read 1213 times)
Key-Real
Sr. Member
Posts: 395
[SOLVED] is it a top_reg or top_ref or top_local?
«
on:
July 16, 2024, 10:40:46 pm »
Code: Pascal
[Select]
[+]
[-]
lw $s0
,
108
(
$sp
)
<
-
taicpu
(
pp
)
.
oper
[
0
]
^
.
typ
=
top_reg $s0 this I knew
lw $s1
,
(
$s0
)
<
-
what
type
is $s0 is it taicpu
(
pp
)
.
oper
[
1
]
^
.
typ
=
top_reg
or
is it a top_ref
if it is a top_ref how to extract the register name?
«
Last Edit: July 17, 2024, 12:17:44 am by Key-Real
»
Logged
Demo Scene
,
FlyTracker
,
FPC for PlayStation 1
,
my Repos
Key-Real
Sr. Member
Posts: 395
Re: is it a top_reg or top_ref ?
«
Reply #1 on:
July 16, 2024, 11:12:51 pm »
or is it:
taicpu(pp).oper[1]^.typ = top_local
and can be accessable by taicpu(pp).oper[1]^.localoper^.localindexreg ?
Logged
Demo Scene
,
FlyTracker
,
FPC for PlayStation 1
,
my Repos
Key-Real
Sr. Member
Posts: 395
Re: is it a top_reg or top_ref or top_local?
«
Reply #2 on:
July 17, 2024, 12:17:28 am »
its:
taicpu(pp).oper[1]^.typ = top_ref
and is read by
taicpu(pp).oper[1]^.ref^.base
Logged
Demo Scene
,
FlyTracker
,
FPC for PlayStation 1
,
my Repos
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[SOLVED] is it a top_reg or top_ref or top_local?
TinyPortal
© 2005-2018