Skip to content

An image and animation, written in assembly ARMv8 and displayed using the RPi3's VideoCore Framebuffer.

License

Notifications You must be signed in to change notification settings

Naevier/VideoCore-FrameBuffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An image and animation, written in assembly ARMv8 and displayed using the RPi3's VideoCore Framebuffer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published