Skip to content

A simple terminal program to view files, written in x86 assembly

License

Notifications You must be signed in to change notification settings

missn0body/view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view

A barebones assembly schtick.
Made by anson.

This is a simple program that writes the contents of a given file to standard out, similar to the program cat. view used to have an internal buffer limit, but can not output the entirety of files regardless of size. This program will not modify files.

As of v.1.0.5, this program supports globbing of arguments as well as long options, however there is not much reason to actually do so, considering that this program will resolve the --help and --version option first, which will stop program flow. In that case, --help takes precedence over --version. At the moment, view can not read standard input from pipe, and can only read data from existing files.

This program is best used for simple ASCII text files, as other file types may prove to have side effects in regards to terminal output, though extensive testing has not been preformed. In the case of files being unable to be opened or read, view will print respective error messages. view also gives error messages in the case of not enough arguments present, and unrecognized arguments.

I was completely unaware of an x86-32 NASM assembly tutorial 'Writing a useful program with NASM' by Jonathan Leto so any similarity is entirely coincidental.

Usage and options can be read by invoking view --help at the command line. This project refuses a standard license, See UNLICENSE for related details. Issues, bugs, and other things can be discussed at my E-Mail, thesearethethingswesaw@gmail.com

v.1.0.0

(October 2023)
Initial version, able to read files into a buffer which is then written to screen.

v.1.0.5

(Februrary 2024)
Added the ability to read long options and to glob single-character arguments, as well as the option to print a specific amount of bytes to standard out.

v.1.1.0 (Bufferless version)

(Late April 2024)

  • Removed internal buffer limit
  • Added hex dump capabilities
  • Redesigned 'help' output
  • Expanded project structure from single-source to modular