Code Monkey home page Code Monkey logo

videocore-framebuffer's Introduction

License Assembly version Raspberry version QEMU version

VideoCore FrameBuffer

Overview

An image and an animation of a "GEO DASH" game, inspired by Geometry Dash and written in ARMv8 assembly. The image shows the start menu of the game, and the "game" itself is shown in the animation. The character can be chosen from several designs, and it will automatically jump over the boxes and advance to the next stage.

Provides default support for screen printing using a Raspberry Pi 3 or an emulator like QEMU. Utilizes the framebuffer to draw pixels using ARMv8 architecture (requires QEMU or Raspberry Pi 3) with a native resolution of 640 x 480 pixels, using 32-bit ARGB colors. Each pixel on the screen corresponds to a specific location within the random access memory map.

Project developed as part of the Computer Organization university course at FaMAF - UNC.

Getting started

  1. Clone the repository
git clone https://github.com/Naevier/VideoCore-FrameBuffer
  1. Install aarch64 toolchain and QEMU for ARM
sudo apt install gcc-aarch64-linux-gnu
sudo apt install qemu-system-arm
  1. The image or the animation can be played from its own directory (/image or /animation) with
make
make run

The animation speed and the animation character can be changed in the first lines of the app.s code file.

Note: In Arch-based distros the package gcc-aarch64-linux-gnu is named aarch64-linux-gnu-gcc.


Watch demo video

Demo video with added sounds (click the image!)

Files

File Description
app.s Main application file
funciones.s Functions for drawing various elements used in the main module
memmap Description of the program's memory layout and section placement
start.s Configuration and initialization of the framebuffer on the Raspberry Pi

Qemu bug

In some devices, there is a known bug in QEMU that may cause the emulator to fail to start, displaying an "Error 1: unsupported machine type" message. If you come across this issue, you can try resolving it by replacing line 21 of the Makefile with the following command:

qemu-system-aarch64 -M raspi3b -kernel kernel8.img -serial stdio

If the problem persists, consider updating your operating system as an alternative solution.

Authors

License

This VideoCore FrameBuffer is licensed under the Apache License, Version 2.0 - See the license file for more information

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.