Lazarus

Programming => General => Topic started by: jamie on October 17, 2020, 05:04:33 pm

Title: ".NOFRAME" in an assembler block fpc does not like it ?
Post by: jamie on October 17, 2020, 05:04:33 pm
trying to port some d code over and after a long run of other things, I run into this small partial.

Code: Pascal  [Select][+][-]
  1. procedure X64AsmBreak;
  2. asm
  3.  .NOFRAME  // fpc does not know this ?
  4.  INT 3
  5. end;
  6.  
  7.  
Title: Re: ".NOFRAME" in an assembler block fpc does not like it ?
Post by: marcov on October 17, 2020, 05:49:22 pm
Yeah, mentioned among others in this bugreport : https://bugs.freepascal.org/view.php?id=31012
Title: Re: ".NOFRAME" in an assembler block fpc does not like it ?
Post by: jamie on October 17, 2020, 06:39:50 pm
I worked around it using the "nostackframe" which I guess what it means, also added assemble …
Code: Pascal  [Select][+][-]
  1. procedure X64AsmBreak; nostackframe assembler;
  2. asm
  3. int 3;
  4. end;
  5.  
TinyPortal © 2005-2018