Forum > FPC development

[SELVED] .set macro and .set nomacro

(1/1)

Key-Real:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---.set macro        ... code ....set nomacro 
what does that mean?

Thaddy:
it means that the {$macro on} switch is in effect/not in effect?

nickysn:
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:
between
.set macro
and
.set nomacro

are pseudo assembler code witch will be decoded by as to another "real" instructions:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---li $t1, 0x001E0064would be decoded as

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---lui $t1,0x0010ori $t1, $t1,0x0064

Navigation

[0] Message Index

Go to full version