sfl-examples/slide-examples/assembly
Christian Rossow 958920d130 moved to subdir 2023-12-14 14:14:14 +01:00
..
Makefile moved to subdir 2023-12-14 14:14:14 +01:00
README moved to subdir 2023-12-14 14:14:14 +01:00
ex01.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex02.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex03.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex04.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex05.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex06.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex07.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex08.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex09.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex10.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex11.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex12.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex13.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex14.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex15.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex16.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex17.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex18.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex19.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex20.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex21.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex22.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex23.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex24.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex25.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex26.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex27.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex28.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex29.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex30.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex32.asm moved to subdir 2023-12-14 14:14:14 +01:00
ex33.asm moved to subdir 2023-12-14 14:14:14 +01:00
header.asm.inc moved to subdir 2023-12-14 14:14:14 +01:00
macros.asm.inc moved to subdir 2023-12-14 14:14:14 +01:00
sysexit.asm.inc moved to subdir 2023-12-14 14:14:14 +01:00

README

Build these executables typing
    make

All programs have a software breakpoint (int3) at the very beginning.
Then you can debug each of them with:

    gdbtui -ex run ./ex01.runme
   
Then single-step typing `si` once and pressing ENTER. Pressing ENTER
yet another time repeats the last command (in this case, step into).
As soon as you encounter 4 consecuvite NOP instructions you have reached
the end of the code (just before calling sys_exit(42)).

To enjoy gdbtui's beauty, you should create ~/.gdbinit with this config:

    layout asm
    layout regs
    set disassembly-flavor intel

    winheight REGS -10
    winheight CMD -5
    winheight ASM +15

    refresh