Hacker News new | past | comments | ask | show | jobs | submit login

You just need a decent assembler with macro support. Here's a few lines of code I have for 32-bit x86 code:

    PRINTF "main_task: sf=%p",ebp
    PRINTF " sf: 1=%d 2=%d 3=%d 4=%d",dword [ebp+8],dword [ebp+12],eax,ebx
I'm using NASM and it wasn't hard to write the macro to do so.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: