Corning Community College
CSCS1320 C/C++ Programming
Obtain the latest stable release of Vircon32, along with its DevTools, and modify the “hello, world!” demo to display an image, along with modified text (content, position, attributes).
As has been the case with many projects this semester, you will also be contributing to the project documentation, detailing the necessary steps to obtain, configure, build, and use the items being focused on.
With clarification gained from asking any needed questions, you will proceed to craft useful documentation with the rest of the class. The final result should allow anyone to accomplish the task.
If you struggle with how to form questions, perhaps consider utilizing the college learning commons to receive assistance with forming good questions.
NOTE: Do not add the source code to Vircon32 or DevTools to your repository! Process these outside of your repository. Once installed, your files specifically related to your modified “Hello, World!” cartridge should be added to your repository.
You will want to go here to edit and fill in the various sections of the document:
The main Virocon32 site is vircon32.com
The list of Releases can be found on the Vircon32 GitHub repository here: https://github.com/vircon32/ComputerSoftware/releases
The list of C header files for Vircon32 is here https://www.vircon32.com/api.html
The aforementioned archive files contain a README detailing the build process.
All of the following steps can be simplified by using the Make.sh that is already made for us. It's worth looking within the file to see how it operates. To use this file you can type
bash Make.sh
The .sh represents that it is a shell script file.
First we need to compile the C code, which can be done with the following command from the Vircon32 developer tools:
compile CODE.c -o obj/CODE.asm || abort_build
Where CODE is the name of your file, which may be preceded with “Tutorial” if you're keeping the same name as the demo file.
Once you've compiled your code successfully, you can use the following Vircon32 tool to assemble the ASM code:
assemble obj/CODE.asm -o obj/CODE.vbin || abort_build
Where, again, CODE is whatever you decided to name this project.
To use the images we want with the Vircon32 console/emulator, we have to first use one of the development tools provided to us. This tool is called png2vircon, and if you have it in your path you should be able to use it as such:
png2vircon IMAGE.png
where IMAGE is the file name of your png.
Text can be displayed with the set_drawing_point() and print() methods
set_drawing_point(0, 0); print("Hello World");
The print() method draws text using the drawing point as the uppermost left part of the text
select_texture(int texture_id)
select_region(int region_id)
define_region(int min_x, int min_y, int max_x, int max_y, int hotspot_x, int hotspot_y)
To be successful in this project, the following criteria (or their equivalent) must be met:
Let's say you have completed work on the project, and are ready to submit, you would do the following:
lab46:~/src/SEMESTER/DESIG/PROJECT$ submit DESIG PROJECT file1 file2 file3 ... fileN
You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches.
I'll be evaluating the project based on the following criteria:
182:fwg0:final tally of results (182/182) *:fwg0:submitted adequately modified demo code for project by duedate [52/52] *:fwg0:source file, build script, and cartridge submitted [52/52] *:fwg0:code compiles, cartridge builds with no warning or error [52/52] *:fwg0:committed project related changes to semester repo [26/26]