Recent

Author Topic: go into machine code  (Read 3176 times)

alsor

  • New Member
  • *
  • Posts: 47
go into machine code
« on: March 20, 2021, 09:42:08 pm »
It's possible to go into binary code in the debugging run?

I have in the mind the: cpu state display, machine - assembler code, etc.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: go into machine code
« Reply #1 on: March 20, 2021, 10:14:57 pm »
View -> Debug Windows -> Registers etc.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: go into machine code
« Reply #2 on: March 20, 2021, 10:24:58 pm »
I think keyboard is alt-F7 and alt-F8

But not sure. Tools > Options > Editor > Keymap
You can assign keys as you need.

https://wiki.lazarus.freepascal.org/IDE_Window:_Assembler
https://wiki.lazarus.freepascal.org/IDE_Window:_Registers

alsor

  • New Member
  • *
  • Posts: 47
Re: go into machine code
« Reply #3 on: March 21, 2021, 04:39:35 pm »
Something works using alts, but this is still usess, because in the asm code window i cant do any step;
F7 returns me to a source code, instead going forth withing this asm instruction...
F4 - don't works too

Is this debugger... strongly bugged? haha!

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: go into machine code
« Reply #4 on: March 21, 2021, 06:17:32 pm »
In the asm window you need to keep using Alt-F7 or Alt-F8.

F4 is indeed source code only, and does not work in asm.

You can also use the buttons in the asm window.

Or in Tools > Option > Editor > Keymap
you can find "Step into (context)" and "Step over (context)" and assign F7/F8 to those.
Then stepping will be according to which window has focus.

This is actually documented on the page I linked
https://wiki.lazarus.freepascal.org/IDE_Window:_Assembler#Using_the_same_or_different_keys_for_Pascal_and_ASM_stepping



Btw Tools > Option > Debugger - there is a setting "AssemblyStyle" in the property grid. Just in case you have preferences


But yes, overall the disassembler support is limited.


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: go into machine code
« Reply #5 on: March 21, 2021, 06:36:24 pm »
I just tested. It works for me. So I tested trunk.

But there is an issue, with the source editor coming to front on each step, and then the asm getting back to front. (Only noticeable if they overlap).


 

TinyPortal © 2005-2018