Wednesday, September 16, 2020

Looking at assembly links and binary string to int conversion

from gdb:
"Examine memory: x/FMT ADDRESS.
ADDRESS is an expression for the memory address to examine.
FMT is a repeat count followed by a format letter and a size letter.
Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),
  t(binary), f(float), a(address), i(instruction), c(char), s(string)
  and z(hex, zero padded on the left).
Size letters are b(byte), h(halfword), w(word), g(giant, 8 bytes).
The specified number of objects of the specified size are printed
according to the format.  If a negative number is specified, memory is
examined backward from the address.

Defaults for format and size letters are those previously used.
Default count is 1.  Default address is following last thing printed
with this command or "print"."

I thought you might want to take a dip in assembly:
https://www.recurse.com/blog/7-understanding-c-by-learning-assembly

Yes. This is one of the best tutorials ever!
https://www.recurse.com/blog/5-learning-c-with-gdb

https://stackoverflow.com/questions/2343099/convert-binary-format-string-to-int-in-c

https://www.geeksforgeeks.org/convert-string-binary-sequence/

https://forgetcode.com/c/1852-decimal-to-binary-conversion-of-a-string

https://www.chegg.com/homework-help/questions-and-answers/write-program-c-converts-binary-string-decimal-working-q17989700







No comments:

Post a Comment