Skip to content

A simplified CPU scheduler simulator for CASIO PRIZM calculators like the fx-CG50.

License

Notifications You must be signed in to change notification settings

stignarnia/PrizmScheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrizmTCP

A simplified CPU scheduler simulator for CASIO PRIZM calculators like the fx-CG50. Based on the PrizmSDK+libfxcg community project.

This isn't an actual CPU scheduler, just a simulator of various algorithms to see how they work and evolve over time.

I built this using excercises from the IT systems course at my university so it might not reflect reality and contain several simpifications that were made to make those excercises doable by hand.

Features

  • Earliest Deadline First;
  • EDF*;
  • Total Bandwidth Server;
  • TBS*;
  • Dover;
  • Response Time Analysis.

How to install

  1. Update your calculator;
  2. Download the program;
  3. Connect the calculator to you PC using the USB cable included in the box and press F1 on the calculator;
  4. Drag&Drop the .g3a file into the calculator which is now connected as a normal thumbstick;
  5. Safely remove the device;
  6. You'll find the program in the calculator's home screen, Enjoy!

How to modify and compile

  1. Get the PrizmSDK+libfxcg ready using their own README as instructions;
  2. Download this repository and, once extracted to a folder named PrizmScheduler, place the former inside the projects directory of the SDK;
  3. Open a terminal window inside the PrizmScheduler folder and give the ./make command;
  4. You'll find the new .g3a executable in the same folder.

If you want to change the name that appears on the calculator as program name, modify line 32 of the Makefile like this: MKG3AFLAGS := -n basic:<NEW NAME> -i uns:../unselected.bmp -i sel:../selected.bmp

Changing the name of the PrizmScheduler folder will also change the name of the output executable but not one that appears on the calculator's menu.

If you want to change the icon, modify both the .bmp files and export them with a color depth of 24 and without changing the dimensions.

If you want to modify the actual program, just use the src\main.c file. You can also change the name and add multiple .c and .h files, everything in that directory will be compiled. It should also do C++ but refer to the SDK documentation for that.

About

A simplified CPU scheduler simulator for CASIO PRIZM calculators like the fx-CG50.

Topics

Resources

License

Stars

Watchers

Forks