Emulator of Atmega2561 selected instructions written in C. Implemented instructions:
- LDI
- MOV
- FMUL
- FMULS
- FMULSU
- ELPM
- EIJMP
- EICALL
- IJMP
- RJMP
- LDD
- STD
- Create file with assembly instructions (file with .s extension) and put it into "/tests" folder
- Follow the "make-test.sh" instructions written below
- Follow the "compare.sh" instructions written below
- Generated .hex files will showcase the functionality of the instructions.
- Write "./make-test.sh -f filename" (filename without the extension)
- Run the emulator ("./syko.exe" with apropriate arguments)
- Copy the output file (file_data.bin) to "tests/binary data" and rename it to "name_out.bin" where name is the name of the test
- Run "./compare.sh" inside the folder "binary data", there will be created two output files: .dec i .hex
This script runs for each .s test file inside /tests/ It does the following:
- Runs the make-test.sh script and creates adequate binary files
- Runs syko.exe with arguments: 30 30 zeroPC
- Copies output files (file_data.bin) to /tests/binary data with adequate name
- Runs compare.sh script and creates comparison .hex and .dec files
To run it write ". ./test-all.sh" in terminal from "/tests/" folder