diff --git a/src/utils/uhex.c b/src/utils/uhex.c new file mode 100644 index 0000000..f47be49 --- /dev/null +++ b/src/utils/uhex.c @@ -0,0 +1,72 @@ +// uhex (microhex) port for BlankOS; read-only version +// Author: xamidev +// Licensed under the Unlicense. See the repo below. +// https://github.com/xamidev/blankos + +// This version is the port of a hex viewer which already was not great, +// and now by being here it is even worse because it is RO and will have +// hardcoded stuff in it (no ioctl, STDOUT, or other stuff here...) + +/* + +#define BYTES 1024 +#define round(x) (int)(x < 0 ? (x -0.5) : x + 0.5) + +// WIP: pushed but not done yet + +void print_hex(unsigned char* buf, int byteno, int pos, int BYTES_PER_LINE) +{ + for (int i=0; i\nInline commands:\n\tpX - print position X\n\teX - edit position X\n\tq - quit\n"); + return; + } + + int BYTES_PER_LINE = 20; + + + +} + +*/