Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
FPC development
(Moderators:
FPK
,
Tomas Hajny
) »
[SELVED] .set macro and .set nomacro
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
WIKI Maintenance
Our wiki is currently undergoing maintenance. Courtesy of Tony a mirror is available
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SELVED] .set macro and .set nomacro (Read 2213 times)
Key-Real
Sr. Member
Posts: 413
[SELVED] .set macro and .set nomacro
«
on:
April 26, 2024, 01:48:31 pm »
Code: Pascal
[Select]
[+]
[-]
.
set
macro
...
code
...
.
set
nomacro
what does that mean?
«
Last Edit: June 04, 2024, 10:20:25 am by Key-Real
»
Logged
Demo Scene
,
FlyTracker
,
FPC for PlayStation 1
,
my Repos
Thaddy
Hero Member
Posts: 19978
Pointless static linking author
Re: .set macro and .set nomacro
«
Reply #1 on:
April 26, 2024, 07:11:38 pm »
it means that the {$macro on} switch is in effect/not in effect?
Logged
Any "programmer" that knows only one programming language is not a programmer
nickysn
New Member
Posts: 27
Re: .set macro and .set nomacro
«
Reply #2 on:
April 28, 2024, 10:15:49 pm »
This is something specific to the MIPS assembler:
https://sourceware.org/binutils/docs-2.32/as/MIPS-Macros.html
However, I don't know MIPS, so I can't help you any further. The MIPS code generator produces these directives, but I don't know why.
Logged
Key-Real
Sr. Member
Posts: 413
Re: .set macro and .set nomacro
«
Reply #3 on:
June 04, 2024, 10:20:14 am »
between
.set macro
and
.set nomacro
are pseudo assembler code witch will be decoded by as to another "real" instructions:
Code: Pascal
[Select]
[+]
[-]
li $t1
,
0x001E0064
would be decoded as
Code: Pascal
[Select]
[+]
[-]
lui $t1
,
0x0010
ori $t1
,
$t1
,
0x0064
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
) »
[SELVED] .set macro and .set nomacro
TinyPortal
© 2005-2018