Amiga programming examples
Go to file
alpine9000 6f4915dc6d updated license 2016-06-03 20:52:32 +10:00
000.trackdisk Update README.md 2016-03-09 15:14:03 +11:00
001.simple_image A few incorrect dbra counters 2016-03-25 19:49:36 +11:00
002.sprite_display Removed conflicting ADF name 2016-03-14 13:49:20 +11:00
003.music A few incorrect dbra counters 2016-03-25 19:49:36 +11:00
004.copper_bars Update README.md 2016-03-09 14:53:30 +11:00
005.copper_vert Update README.md 2016-03-09 14:54:17 +11:00
006.simple_blit A few incorrect dbra counters 2016-03-25 19:49:36 +11:00
007.masked_blit A few incorrect dbra counters 2016-03-25 19:49:36 +11:00
008.shift_blit A few incorrect dbra counters 2016-03-25 19:49:36 +11:00
009.anim_blit Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
010.blit_speed Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
011.ehb_mode Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
012.ham_mode Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
013.dithered_ham Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
014.lace_mode Removed -phxass assembler argument 2016-03-20 21:11:56 +11:00
015.sliced_ham Disabled interlaced for space 2016-03-21 21:24:02 +11:00
016.copper_fun Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
017.dual_playfield Removed -phxass assembler argument 2016-03-20 21:11:56 +11:00
018.vert_scroll Removed -phxass assembler argument 2016-03-20 21:11:56 +11:00
019.hori_scroll Removed -phxass assembler argument 2016-03-20 21:11:56 +11:00
020.shrinkler Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
021.calling_c Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
022.photons_bootloader Updates for removal of -phxass option 2016-03-21 20:35:08 +11:00
023.slideshow Changes for fs-uae debugger symbols 2016-03-29 08:44:18 +11:00
024.simple_text Cleanup 2016-04-04 13:50:40 +10:00
025.scroll_text Merge branch 'master' of https://github.com/alpine9000/amiga_examples 2016-04-04 13:51:09 +10:00
026.tile_hscroll Update README.md 2016-05-28 14:42:06 +10:00
027.parallax added adf 2016-05-28 14:24:43 +10:00
028.bs updated credits 2016-06-03 17:14:57 +10:00
assets File used for resize test 2016-03-31 08:40:56 +11:00
doc Cleanup 2016-05-03 10:21:00 +10:00
examples
include spiked playing samples 2016-05-02 18:56:03 +10:00
shared workbench launch option 2016-05-29 13:09:10 +10:00
tools Create install floppy 2016-05-29 19:28:59 +10:00
.gitignore render pathways until empty column 2016-04-27 10:54:12 +10:00
LICENSE updated license 2016-06-03 20:52:32 +10:00
Makefile updated tool tests 2016-05-18 15:47:31 +10:00
README.md Update README.md 2016-06-03 20:40:58 +10:00

README.md

(re)Learning how to program an Amiga after a 20 year break

introduction

This repo contains example programs I have written as I re-learn how to program an amiga. The programs are written in assembler and directly access the hardware. Most of the examples have been tested using FS-UAE and my Amiga 500. Some require 1mb of chip ram, most work fine with 512kb.

Don't use this as an amiga programming guide. I don't do things the "correct" way. There are heaps of great guides out there if you want to do things the right way. My a68k asm vocab starts out pretty small, and grows only very slowly, so again, this is not guide on the best way to do things.

documentation

Most of the sites I have used during the learning process:

examples

Each example tries to introduce only one new concept, often building on the previous examples.

See each example's README.md for a limited description as well as a clickable link to run the example in your browser using my hacked version of Scripted Amiga Emulator

Most of the examples are only tested on a 512kb chip ram A500. Some examples have an option extended versoin that might require more chip ram, and in that case an A600 would be the best option.

cross development environment

These examples are developed on a mac using cahirwpz's AmigaOS cross compiler for Linux / MacOSX / Windows.

https://github.com/cahirwpz/amigaos-cross-toolchain

The support tools I have developed have additional requirements which you may not have on your system.

For a dump of what I did to install them see installing the cross development environment

building

Build all examples by running make at the top level directory.

Individual examples can be built by entering the directory and running make:

# cd 001.simple_image
# make

this will create a bootable ADF image in the bin directory.

Load this file directly into your emulator of choice as DF0:, or even better, run it on the real hardware.

emulators

The following are the emulators I have used so far:

they each have strengths and weaknesses, so it's worth giving them each a try.

tools

The following cross development tools have been developed to support the examples:

  • imagecon # create amiga compatible raw image data from true color images
  • resize # resize images ready for imagecon
  • croppa # crop images ready for imagecon
  • mapgen # generate amiga data from tiled maps
  • fade # generate data for fading between palettes
  • makeadf # make ADF disk image

external tools

The following cross development tools have been sourced from external authors:

  • shrinkler # compress for maximum compression, slow decompression
  • doynamite68k # compress for fast decompression

Each tool has a test to check if any changes you have made have broken basic functionality:

# cd tools/imagecon
# make test
______  ___   _____ _____ ___________
| ___ \/ _ \ /  ___/  ___|  ___|  _  \
| |_/ / /_\ \\ `--.\ `--.| |__ | | | |
|  __/|  _  | `--. \`--. \  __|| | | |
| |   | | | |/\__/ /\__/ / |___| |/ /
\_|   \_| |_/\____/\____/\____/|___/
#

or test all by running make test at the top level

license

Some of the code I have included in this repository is copyright by various authors and provided under various licenses. Copyright notices are preseved where possible.

Some of the tools use GPL licensed libraries which would mean they could only be distributed under the conditions of the respective version of the GPL.

All code without a copyright notice is licensed as per the terms in LICENSE.