pouët.net

Go to bottom

Proper startup-code for Amiga

category: code [glöplog]
@britelite

Yes but only provided that it works on the real hardware.
added on the 2015-11-05 21:19:34 by AlienTech AlienTech
Quote:
With "exotic" I meant those Amiga compatible systems like for example The Draco and the modern Minimig (which I own).

Draco lacks the chipset, so no. What Britelite said about the Minimig. :)

Quote:
"; twice to avoid a4k hw bug" from the source code provided above by StingRay.

Yes, that one is included in the interrupt code.
added on the 2015-11-05 22:19:28 by Blueberry Blueberry
Quote:
Yes but only provided that it works on the real hardware.

That was my point, yes. You shouldn't make any changes in your code for MiniMig, it's the MiniMig that needs to be fixed if something doesn't work.
added on the 2015-11-06 07:09:54 by britelite britelite
Here is the MiniWrapper used in the Amiga Hardware Programming Youtube tutorials and the Amiga Future articles Developing Demo Effects (available in German and English).

It's all you need, just add the label Demo: and paste your hardware-banging code. :)

This article on Coppershade.org explains the startup code with a link to the optional double-buffering demo template, where you can try ideas easily.

All of the code works on all Amigas, including auto-switching from graphics cards to native graphics. Have fun :)
added on the 2015-11-08 02:46:09 by Photon Photon
Quote:
Here is the MiniWrapper

A typo from the very beginning:
Code: lea .GetVBR(PC),a5 ;else fetch vector base address to a4
added on the 2015-11-09 14:38:33 by lvd lvd
Quote:
A typo from the very beginning:
Code: lea .GetVBR(PC),a5 ;else fetch vector base address to a4

It's not a typo. The vector base address is fetched to A4 by the .GetVBR procedure, the address of which is put into A5 for the Supervisor call on the subsequent line.
added on the 2015-11-09 15:20:37 by Blueberry Blueberry
Ooops, yes. So not a typo, just my dumbness :)
added on the 2015-11-09 15:43:03 by lvd lvd
Yesh, but shouldn't it read Amiga instead of PC? ;)
added on the 2015-11-09 18:02:42 by noname noname
and PRINCESS lea...
added on the 2015-11-09 22:36:13 by raer raer

login

Go to top