0000000000033a1b subq $0x28,%rsp
I am having trouble extracting 0x28 from the above line. I am able to extract subq from a big list of assembly code but i only want 0x28 since this gives me the stack size. I was thinking of using substr() function buy there are variations to it, another one could look like this:
0000000000033a1c subq $0x000000b8,%rsp
in this case i only want 0x000000b8.
I am using perl.
User contributions licensed under CC BY-SA 3.0