Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlewis committed Sep 12, 2022
0 parents commit 8ca37f1
Show file tree
Hide file tree
Showing 75 changed files with 13,838 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Asteroids for Analogue Pocket

+ FPGA implementation of Arcade _Asteroids_ (Atari, 1979) for Analogue Pocket.
+ Based on Rev.4 schematics.
+ Ported from the [original MiSTer implementation.](https://github.com/MiSTer-devel/Arcade-Asteroids_MiSTer)
+ Multiplayer support via dock.

## Known Issues

+ DIP switches are not implemented.
+ Might not compile / fit correctly due to timing?

## ROM Instructions

ROM files are not included, you must use [mra-tools-c](https://github.com/sebdel/mra-tools-c/) to convert to a singular `asteroid.rom` file, then place the ROM file in `/Assets/asteroids/ericlewis.Asteroids`.
Empty file.
5 changes: 5 additions & 0 deletions dist/Cores/ericlewis.Asteroids/audio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"audio": {
"magic": "APF_VER_1"
}
}
Binary file added dist/Cores/ericlewis.Asteroids/bitstream.rbf_r
Binary file not shown.
34 changes: 34 additions & 0 deletions dist/Cores/ericlewis.Asteroids/core.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"core": {
"magic": "APF_VER_1",
"metadata": {
"platform_ids": ["asteroids"],
"shortname": "Asteroids",
"description": "Atari's Asteroids released in 1979.",
"author": "ericlewis",
"url": "https://github.com/ericlewis/openfpga-asteroids",
"version": "0.0.1",
"date_release": "2022-09-09"
},
"framework": {
"target_product": "Analogue Pocket",
"version_required": "1.1",
"sleep_supported": false,
"dock": {
"supported": true,
"analog_output": false
},
"hardware": {
"link_port": false,
"cartridge_adapter": -1
}
},
"cores": [
{
"name": "default",
"id": 0,
"filename": "bitstream.rbf_r"
}
]
}
}
17 changes: 17 additions & 0 deletions dist/Cores/ericlewis.Asteroids/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"data": {
"magic": "APF_VER_1",
"data_slots": [
{
"name": "ROM",
"id": 101,
"required": true,
"parameters": 2,
"filename": "asteroid.rom",
"size_exact": 0,
"size_maximum": 131072,
"address": "0x00000000"
}
]
}
}
Binary file added dist/Cores/ericlewis.Asteroids/icon.bin
Binary file not shown.
1 change: 1 addition & 0 deletions dist/Cores/ericlewis.Asteroids/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Atari's Asteroids released in 1979. Ported from MiSTer.
32 changes: 32 additions & 0 deletions dist/Cores/ericlewis.Asteroids/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"input": {
"magic": "APF_VER_1",
"controllers": [
{
"type": "default",
"mappings": [
{
"id": 0,
"name": "Shoot",
"key": "pad_btn_a"
},
{
"id": 1,
"name": "Warp",
"key": "pad_btn_b"
},
{
"id": 2,
"name": "Thrust",
"key": "pad_btn_x"
},
{
"id": 3,
"name": "Start",
"key": "pad_btn_start"
}
]
}
]
}
}
7 changes: 7 additions & 0 deletions dist/Cores/ericlewis.Asteroids/interact.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"interact": {
"magic": "APF_VER_1",
"variables": [],
"messages": []
}
}
6 changes: 6 additions & 0 deletions dist/Cores/ericlewis.Asteroids/variants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"variants": {
"magic": "APF_VER_1",
"variant_list": []
}
}
15 changes: 15 additions & 0 deletions dist/Cores/ericlewis.Asteroids/video.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"video": {
"magic": "APF_VER_1",
"scaler_modes": [
{
"width": 640,
"height": 480,
"aspect_w": 4,
"aspect_h": 3,
"rotation": 0,
"mirror": 0
}
]
}
}
8 changes: 8 additions & 0 deletions dist/Platforms/asteroids.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"platform": {
"category": "Arcade",
"name": "Asteroids",
"year": 1979,
"manufacturer": "Atari"
}
}
18 changes: 18 additions & 0 deletions mra/Asteroids.mra
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<misterromdescription>
<name>Asteroids (rev 4)</name>
<mameversion>0220</mameversion>
<setname>asteroid</setname>
<mratimestamp>20200427161917</mratimestamp>
<year>1979</year>
<manufacturer>Atari</manufacturer>
<category>Space / Asteroids</category>
<category>Space / Fighter</category>
<rbf>asteroids</rbf>
<rom index="0" zip="asteroid.zip" md5="1bcd2899e3f92d2824a2ac9def2d3286">
<part crc="b503eaf7" name="035145-04e.ef2"/>
<part crc="25233192" name="035144-04e.h2"/>
<part crc="312caa02" name="035143-02.j2"/>
<part crc="8b71fd9e" name="035127-02.np3"/>
<part crc="97953db8" name="034602-01.c8"/>
</rom>
</misterromdescription>
28 changes: 28 additions & 0 deletions src/fpga/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
*/db/
*/incremental_db/
*/simulation/
*/greybox_tmp/
incremental_db/
db/
PLLJ_PLLSPE_INFO.txt
c5_pin_model_dump.txt
cr_ie_info.json
*.pin
*.pof
*.ptf.*
*.qar
*.qarlog
*.qws
*.rpt
*.smsg
*.sof
*.sopc_builder
*.summary
*.txt
*.bak
*.cmp
*.done
*.xml
*.sld
*.cdf

31 changes: 31 additions & 0 deletions src/fpga/ap_core.qpf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2019 Intel Corporation. All rights reserved.
# Your use of Intel Corporation's design tools, logic functions
# and other software and tools, and any partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Intel Program License
# Subscription Agreement, the Intel Quartus Prime License Agreement,
# the Intel FPGA IP License Agreement, or other applicable license
# agreement, including, without limitation, that your use is for
# the sole purpose of programming logic devices manufactured by
# Intel and sold by Intel or its authorized distributors. Please
# refer to the applicable agreement for further details, at
# https://fpgasoftware.intel.com/eula.
#
# -------------------------------------------------------------------------- #
#
# Quartus Prime
# Version 18.1.1 Build 646 04/11/2019 SJ Lite Edition
# Date created = 21:31:36 January 22, 2020
#
# -------------------------------------------------------------------------- #

QUARTUS_VERSION = "18.1"
DATE = "21:31:36 January 22, 2020"

# Revisions

PROJECT_REVISION = "ap_core"
Loading

0 comments on commit 8ca37f1

Please sign in to comment.