Recent

Author Topic: [SELVED] .set macro and .set nomacro  (Read 2057 times)

Key-Real

  • Sr. Member
  • ****
  • Posts: 395
[SELVED] .set macro and .set nomacro
« on: April 26, 2024, 01:48:31 pm »
Code: Pascal  [Select][+][-]
  1. .set macro
  2.         ... code ...
  3. .set nomacro
  4.  

what does that mean?
« Last Edit: June 04, 2024, 10:20:25 am by Key-Real »

Thaddy

  • Hero Member
  • *****
  • Posts: 18529
  • Here stood a man who saw the Elbe and jumped it.
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?
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

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.

Key-Real

  • Sr. Member
  • ****
  • Posts: 395
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][+][-]
  1. li $t1, 0x001E0064
would be decoded as
Code: Pascal  [Select][+][-]
  1. lui $t1,0x0010
  2. ori $t1, $t1,0x0064


 

TinyPortal © 2005-2018