Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added hexdump UPROG #194

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

TheUbMunster
Copy link

I've seen in previous pull requests that this version of xv6 is not maintained really anymore, however, my school used this repository as the central point of study in our class, and during one of my HW assignments regarding modifying the filesystem, it would have been useful to have a hexdump tool.

In contrast to programs like cat and wc that have good utility within code (no need to sanitize outputs), since this tool is mostly human in necessity (after all, if you just want the raw binary of the file, then just open and read it). It has niceties and formatting to make using it a decent experience (not too over the board I think). I've bug-tested it fairly well by screwing around with ASCII & Binary files (you can even read elf files of course, so it's fun to take a look at "7F 45 4C 46" etc.)

This tool lets you read multiple files if you want (sequentially, but idk why you would do that), and only prints 16 lines at a time (hit enter to continue).

If this is something that you think would benefit others as well, then awesome, if you would rather I also/instead consider the RISC-V repo, then I can do that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant