sfl-examples/slide-examples
Christian Rossow 227c01cefe added slide examples 2023-12-14 14:12:51 +01:00
..
Makefile added slide examples 2023-12-14 14:12:51 +01:00
README added slide examples 2023-12-14 14:12:51 +01:00
ex01.asm added slide examples 2023-12-14 14:12:51 +01:00
ex02.asm added slide examples 2023-12-14 14:12:51 +01:00
ex03.asm added slide examples 2023-12-14 14:12:51 +01:00
ex04.asm added slide examples 2023-12-14 14:12:51 +01:00
ex05.asm added slide examples 2023-12-14 14:12:51 +01:00
ex06.asm added slide examples 2023-12-14 14:12:51 +01:00
ex07.asm added slide examples 2023-12-14 14:12:51 +01:00
ex08.asm added slide examples 2023-12-14 14:12:51 +01:00
ex09.asm added slide examples 2023-12-14 14:12:51 +01:00
ex10.asm added slide examples 2023-12-14 14:12:51 +01:00
ex11.asm added slide examples 2023-12-14 14:12:51 +01:00
ex12.asm added slide examples 2023-12-14 14:12:51 +01:00
ex13.asm added slide examples 2023-12-14 14:12:51 +01:00
ex14.asm added slide examples 2023-12-14 14:12:51 +01:00
ex15.asm added slide examples 2023-12-14 14:12:51 +01:00
ex16.asm added slide examples 2023-12-14 14:12:51 +01:00
ex17.asm added slide examples 2023-12-14 14:12:51 +01:00
ex18.asm added slide examples 2023-12-14 14:12:51 +01:00
ex19.asm added slide examples 2023-12-14 14:12:51 +01:00
ex20.asm added slide examples 2023-12-14 14:12:51 +01:00
ex21.asm added slide examples 2023-12-14 14:12:51 +01:00
ex22.asm added slide examples 2023-12-14 14:12:51 +01:00
ex23.asm added slide examples 2023-12-14 14:12:51 +01:00
ex24.asm added slide examples 2023-12-14 14:12:51 +01:00
ex25.asm added slide examples 2023-12-14 14:12:51 +01:00
ex26.asm added slide examples 2023-12-14 14:12:51 +01:00
ex27.asm added slide examples 2023-12-14 14:12:51 +01:00
ex28.asm added slide examples 2023-12-14 14:12:51 +01:00
ex29.asm added slide examples 2023-12-14 14:12:51 +01:00
ex30.asm added slide examples 2023-12-14 14:12:51 +01:00
ex32.asm added slide examples 2023-12-14 14:12:51 +01:00
ex33.asm added slide examples 2023-12-14 14:12:51 +01:00
header.asm.inc added slide examples 2023-12-14 14:12:51 +01:00
macros.asm.inc added slide examples 2023-12-14 14:12:51 +01:00
sysexit.asm.inc added slide examples 2023-12-14 14:12:51 +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