Recent

Author Topic: [SOLVED] $INFO directive  (Read 208 times)

julkas

  • Hero Member
  • *****
  • Posts: 524
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
[SOLVED] $INFO directive
« on: December 12, 2019, 09:51:27 am »
How activate $INFO directive in Lazarus 2.0.0 / FPC 3.0.4 ?
I have -vi option in the project custom options.

BTW. $NOTE directive is working as expected.
« Last Edit: December 12, 2019, 12:19:13 pm by julkas »
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

julkas

  • Hero Member
  • *****
  • Posts: 524
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Re: [SOLVED] $INFO directive
« Reply #1 on: December 12, 2019, 12:21:13 pm »
Solution - Filter in Messages windows.
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

Thaddy

  • Hero Member
  • *****
  • Posts: 9439
Re: [SOLVED] $INFO directive
« Reply #2 on: December 12, 2019, 12:34:18 pm »
function mulu64(const a,b:qword):qword;
asm
  mul rdx;
end;

Unless your signature advertises bloat code on purpose.  :-X
It will overflow just as good as yours.... :o :D :D
« Last Edit: December 12, 2019, 12:40:23 pm by Thaddy »
also related to equus asinus.