Bennett/General User Manual
Bennett User Guide
Starting Bennnett
User interface
Expression evaluation
Registers
Memories
Controlling Hardware
Basic controls
Breakpoints
Watchpoints
Loading Data and Files
The ‘Load Program’ button, in the top right of Bennett, encompasses all the file loaders that are used. This is a feature implemented to improve user experience (UX), replacing the ‘Assemble’ tab in the Bennett menu and opening up the possibility of loading a variety of files. Clicking this button will prompt you to select a file to load into Bennett. Currently Bennett supports the loading of the following files:
Binary files (.bin)
Assembly files (.s)
KMD files (.kmd)
Hex files (.txt)
(We are looking to add support for elf files, and expand the ranges of accepted binary and hex files such as JPEG).
Bennett extracts the file extension and uses this to match the appropriate loader. Once a match is found, the system verifies whether the file is memory relocatable. For file types that are memory addressable/relocatable (so far hex and binary), a window pops up allowing you to specify where you want to load your program into, this number must end in 0/4/8/C to keep it consistent with RISC-V memory architecture, or else a warning box pops up to reinstate this rule.
How to Load Files Into Bennett
Loading files couldn't be any easier!
- By using F11, or the button in the top right of the UI, a file directory finder appears
- Select one of the supported files from above
- If selected hex or binary file, enter a memory address in hex, and hit Enter / Load (optional)
- You have successfully loaded your first file into Bennett