update comments
parent
f2d5f3856d
commit
62b9d2e70d
|
@ -25,14 +25,14 @@ byte* AF_address(byte* f) {
|
||||||
return real_address;
|
return real_address;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print bytes from address to address+size (Use AF_address to get function ptr)
|
// Print bytes from address to address+size (Use AF_address() to get function ptr)
|
||||||
int32_t AF_print_bytes(byte* a, int32_t size) {
|
int32_t AF_print_bytes(byte* a, int32_t size) {
|
||||||
for (int32_t i = 0; i < size; ++i) {
|
for (int32_t i = 0; i < size; ++i) {
|
||||||
printf("%02X ", *(a + i));
|
printf("%02X ", *(a + i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get any function size (Use AF_address to get function ptr)
|
// Get any function size (Use AF_address() to get function ptr)
|
||||||
int32_t AF_size(byte* f) {
|
int32_t AF_size(byte* f) {
|
||||||
byte* p = f;
|
byte* p = f;
|
||||||
for (; *p != RET; ++p);
|
for (; *p != RET; ++p);
|
||||||
|
|
Loading…
Reference in New Issue