- User Manual
Welcome to the User Manual for IAT2. This guide is designed to help you understand and use the features of our product efficiently.
Requirements:
- Git
- CMake
- g++ (latest version)
- gcc (latest version)
if you don't have git installed CLICK HERE TO DOWNLOAD.
if you don't have cmake installed CLICK HERE TO DOWNLOAD.
if you don't have gcc installed CLICK HERE TO DOWNLOAD.
if you don't have msys2 installed CLICK HERE TO DOWNLOAD.
Follow these steps to install IAT2:
- Clone the repository:
git clone https://github.com/algosup/2023-2024-project-3-virtual-processor-team-2.git
- Go at the project root
- Create an empty directory named "bin" at the project root
- Go at the project root
- Build the project
- How to use with mingw: (Windows)
- Execute cmake -S . -B Build -G "MinGW Makefiles"
- Execute cd Build
- Execute mingw32-make
- How to use with msys2: (Windows)
- Execute cmake -S . -B Build -G "MSYS Makefiles"
- Execute cd Build
- Execute make
- How to use with make: (Linux)
- Execute cmake -S . -B Build
- Execute cd Build
- Execute make
- How to use with mingw: (Windows)
IAT2 is planned to compile and execute in a single step, if you want to compile and execute separatly your can refer to Assembler (Compile) and Virtual Processor (Execute).
Command | alias | Usage | output |
---|---|---|---|
2at2 <path/file.aop> [param] |
Compile your .aop file | binary file | |
2at2 --help |
2at2 -h |
Display the list of command for 2at2 | |
2at2 --version |
2at2 -v |
Display the version of 2at2 | |
2at2 <file> --debug |
2at2 <file> -d |
Compile the program with the debugger | 2at2.log |
Type: vat2
to run the virtual processor and open the virtual terminal.
Virtual terminal commands:
Command | Usage |
---|---|
<path/binary_file> |
Execute your binary file |
help |
Display the list of command for vat2 |
clear |
Clear the terminal |
version |
Display the version of vat2 |
exit |
Close the terminal |
Issue | Solution |
---|---|
Writing on register 3 | Don't write on register 3 |
Your issue is not here ?
You can also refer to GitHub Issues.
- No, unfortunately negative numbers are not handle yet, but planned for the V2.
Can I use VAT2 to execute my own binary file ?
- Yes and No, You can only if you use the same binary syntax as 2AT2.
Can I execute 2AT2's binary on real hardware ?
- Probably No, unless you find a real hardware using the same syntax (If you find it, tell us)
Name | Definition |
---|---|
IAT2 | Integral Assembler Team 2 (Assembler + Virtual Processor) |
2AT2 | Assembler Assembly Team 2 |
VAT2 | Virtual processor Assembly Team 2 |
.aop | Aop Original Program (extension of AT2 language) |
AT2 | Assembly Team 2 |