7 ms·
Amiga Systems Programming in 2023
- mark_round 3y agoAuthor here, thanks for posting! Happy to answer any questions or chat Amiga stuff in general. Bear in mind - as I said in the article - I'm more-or-less a total newbie when it comes to all this stuff. I have been involved in the Amiga scene since I got my first A600 in the 90s, but really just observed the coding side of things from the sidelines although I did enjoy a brief stint as a Graphics Artist using DeluxePaint for a UK Scene group. My C code will probably make your eyes bleed, and I'm sure I've got some factual details wrong but diving back into this platform again (and discovering all the little details that made it so advanced for the time) after a long absence has been a lot of fun!
- tralarpa 3y agoDo I see there an A1200 with a case that doesn't close properly because you put a 3.5" HD in it instead of the more expensive (and less capacity) 2.5" HD? :) Edit: Ah, no. I just read the article. It's the accelerator, I suppose.
- mark_round 3y agoHa, good eye :) Nah, you see an A1200 that I am constantly fiddling with, and I frequently take the SD and CF cards out to clone! I do have a set of backup scripts that clone content to a CF card in a PCMCIA adapter but I always feel safer with a full "dd" backup or similar. Because I keep opening it up I just leave the screws removed for easier access and make sure it's kept dust free every so often.
- danby 3y agoIf you're willing to mod the case (or buy a new case you're willing to mod) I can strongly recommend a CF2IDE relocator https://retroready.one/collections/adapters-interfaces/products/cf-to-ide-amiga-a600-a1200-external-cf-adapter-no-ide-cable-required https://retroready.one/collections/adapters-interfaces/produ...
- helpfulContrib 3y agoHow do you feel about the Amiga 500 as a platform for teaching systems programming? These are a lot more accessible to kids and the like, than the fully loaded A600 that only a few of us have stashed in the attic/atop the retrocollection .. Kids really love retro-computing (I'm a curator at such a museum, also) and the #1 request is - how do I get some hardware to get started? What of the new-school platforms do you consider a viable answer to that question, Amiga systems-hacking wise?
- glimshe 3y agoHaving done system programming on retro platforms, my recommendation for this specific purpose is to use a great emulator, and the Amiga happens to have UAE which is one of the best emulators around. Debugging will be a lot easier and you deal way less with the grind of using an old piece of hardware. I understand if you want the full retro experience, but the full experience won't necessarily be conducive to better learning.
- bluescrn 3y agoThis. One day I'd like to revisit Amiga coding. I did a fair bit of Blitz Basic and a little bit of 68K ASM back in the day, but learning it was challenging as a teenager in the pre-Internet era. I'd definitely rather edit+compile/assemble code on a modern PC and do most testing in UAE. I don't need the nostalgia of slow reboot cycles and reloading things from floppy disks when my code inevitably crashes/hangs, let alone editing blurry code on a 14" CRT TV...
- actionfromafar 3y agoEven people targeting the real hardware often compile these days on a Mac or PC.
- bluescrn 3y agoThe tricky bit is deployment to the Amiga. My only way to put files onto my Amiga at present is a CompactFlash card (or 3.5" floppies) I don't have ethernet hardware on my Amiga (and may not have enough RAM for that approach), but maybe there's a slower-but-simpler solution with a parallel/serial port link? UAE makes that deployment easy, making a PC folder accessible as an Amiga drive. The downside is the lack of smooth 50Hz (PAL) display. Although I do have a g-sync monitor, so maybe that's a solveable problem these days...
- anfractuosity 3y agoVery interesting article, I've only vaguely heard of the more modern Amiga computers. Looking at https://www.hyperion-entertainment.com/index.php/where-to-buy/direct-downloads/174-amigaos-41-final-edition-for-classic https://www.hyperion-entertainment.com/index.php/where-to-bu... the latest versions of the OS run on the 1200+ with an accelerator, I assume then the A500 isn't really supported any more? I've got an A500 I bought second hand that I need to play with more, it came with some interesting looking software such as AMOS 3D. Just wondering if you have any recommendations to obtain a HDMI output. I just found - https://www.retropassion.co.uk/product/rgb2hdmi_amiga_500/ https://www.retropassion.co.uk/product/rgb2hdmi_amiga_500/. Also it sounds like I should probably dismantle it to remove the battery?
- mark_round 3y agoOS 4.x runs on PowerPC processors, and there are a bunch of dedicated systems like the X1000, X5000 or SAM460EP. You can also run a "classic" OS 4.x version in emulators or on classic Amigas fitted with PowerPC accelerators. You could always snag a used Mac Mini PPC and run MorphOS on it for a similar experience; MorphOS is a sort of "off-shoot" from the Amiga family tree but has very active development including up to date browsers like https://wayfarer.icu https://wayfarer.icu. Hyperion have also released updated and bug-fixed versions of "classic" AmigaOS, and you can purchase the ROM sets and disks for e.g. OS 3.2 to use with an original machine like your A500. For HDMI output, I use an Indivision card. It's a little fiddly to fit (has to clip in over the top of some other chips) but gives a great stable and crystal-clear DVI or HDMI output. There are also external "flicker fixer" boxes or scandoublers that turn the Amiga 15KHz video output into something useable by modern displays, but in my experience they tend not to give as good quality output or have lag issues when playing games.
- vidarh 3y agoTo add to the MorphOS option, there's also AROS which aims for more Amiga compatibility, but also runs natively on x86 PCs or hosted under Linux (you get a window with the full AROS desktop) w/out a VM if you want. (At one point I had a AROS setup that booted straight into FrexxEd with my Linux home directory made available, and Linux-hosted AROS "booted" the entire OS and started FrexxEd faster than my admittedly bloated Emacs setup would start....)
- LargoLasskhyfv 3y agoHm. Your link to the Apollo meanwhile points to something else, I guess? Try this one? http://www.apollo-computer.com/ http://www.apollo-computer.com/ Err... this? http://www.apollo-computer.com/v2legacy.php http://www.apollo-computer.com/v2legacy.php
- Lucretia9 3y agoUse AmigaE, far nicer than C. Never tried Chris Handley's "Portabl E" compiler.
- mhd 3y agoGiven how much Amiga users I knew in the past gushed about their allegedly stellar GoldEd and CygnusEd, I'm quite surprised that this uses Lite.
- throwaway92753 3y agoCygnusEd was first released in 1987. I don't think it's fair to compare with a modern editor that was released 30+ years later. I have not used either [1], but their choice was based on what was available at the time. Edit: [1] Actually I did use CygnusEd for simple text editing, but I was not into programming at the time. I don't have a basis to compare it to modern editors, other than the knowledge that choices needs to be seen in the proper context.
- mark_round 3y agoCygnusEd was the absolute business back in the day. I still love it, but my muscle memory just isn't there anymore after years of PC/Mac editors! I guess I've also become too spoiled by modern conveniences. LiteXL runs on pretty much anything and writing extensions is also pretty easy. But maybe I should get back into the habit of using CygnusEd some more...
- unwind 3y agoI was old enough back then that I remember actually paying for the shareware version of FrexxEd [1]. I just learned from that page that it's open source now, cool! [1]: https://daniel.haxx.se/opensource.html https://daniel.haxx.se/opensource.html (yes, by the author of curl).
- vidarh 3y agoFrexxEd is beautiful, and scripted with C-like programming language (FPL), or Arexx, and it has fun features such as giving access to the buffers of your running instance via a filesystem, so you can e.g. call the compiler directly on your open buffers (a lot more useful on a limited RAM system with floppies, granted)
- 3y ago
- ithkuil 3y agoTIL vamos (aka Wine for Amiga :) https://github.com/cnvogelg/amitools/blob/master/docs/vamos.md https://github.com/cnvogelg/amitools/blob/master/docs/vamos....
- mark_round 3y agoWow! Starred and saved. Thanks for the tip, that will be so useful for testing and incorporating in my Drone pipelines. I'll have a play and post an update, it looks like it should work nicely with my simple utility. Nice find!
- flohofwoe 3y agoWow blast from the past :D I must say, I'm thoroughly impressed that the Amiga community sticks with and improves the standards that were already set in the early 1990's (AmigaGuide, the Lisp-y installer scripts, LHA, and probably also things that are not mentioned in the article, like AREXX and datatypes) instead of reinventing the same wheel over and over.
- mark_round 3y agoThere is a fantastic article which I've linked to before that goes into a lot of that: https://datagubbe.se/ltmag/ https://datagubbe.se/ltmag/ Datatypes in particular are amazing! I really wish some of these features (see also: ASSIGNs) made it over to other platforms. Which makes me think... A really nice hack (after I finally port SetCmd back to 68k and then bring it to more platforms) would be to add an ARexx port. Rexx itself is a pretty decent scripting language and the ubiquity of it on later-day Amiga systems meant that glue-ing components together and automating big chunks of platform behavior was very simple. Off down the rabbit hole again ;)
- vidarh 3y agoI detest Rexx, but love having the Arexx port, but more Linux software and the like than people think have Dbus ports. If only dbus just wasn't so overengineered (ubus is an alternative)... Also have a long list of projects to make my Linux desktop more Amiga-like again...
- bjourne 3y agoHow energy-efficient are old Amigas? I get the appeal of "limited computing" because it forces you to be smart about using the resources. But it becomes silly when an Amiga and crt draws more power than a modern server.
- mark_round 3y agoI have mine connected to a modern flat-panel display as I use an Indivision adapter, and there are other solutions which is fortunate as CRTs are getting very rare (and fragile!) now. Would still love one for the retro appeal, but I just can't justify it! The power draw from the base system is pretty small, I just checked the power meter my A1200 is plugged into, and powering it on jumped the draw from around 1.6A at 240V to around 1.77A.
- _ea1k 3y agoI bet it'd be rare to see more than 150W. Maybe not efficient compared to a modern laptop, but probably very efficient compared to most modern servers or desktops under load. Of course, a CRT is much worse, but using an LCD shouldn't be difficult.
- BearhatBeer 3y agoCRTs don't use tons of power, biggest draw is right when you turn it on. After that they sip.
- daneel_w 3y agoMy A1200 power supply (Commodore original) is rated for a maximum consumption of 35 watts, which includes headroom for putting both an accelerator board with CPU+FPU+RAM and a 2.5" HDD inside the computer.
- vidarh 3y agoGiven most of them didn't have or need fans, I'd imagine they'd come out ok if you only ditch the CRT.
- robinsonb5 3y ago
- daneel_w 3y agoGreat article. Some petty nitpicking: > "Just use LHA format archives. It’s the standard compression tool on Amigas and even though there are modern (and technically better) alternatives ..." LZX had supplanted LHA already by 1994. > "a 7Mhz 68000 16-bit CPU" It's a "16/32"-bit CPU, since it provides 32-bit operations/immediates and 32 bits worth of data- and address registers. For all practical accounts of programming the CPU it's a 32-bit machine, no matter the bus shoveling data 16 bits at a time behind the scenes. > "... but all of what follows is in the context of developing a systems tool in C as that's the language of AmigaOS" Not sure how to interpret this. You're in no way locked to C if you want to program for AmigaOS. You can load and interact with all of the libraries etc. of AmigaOS in Pascal, E and what-have-you, since there are headers available for almost any language you may want. Even assembly, which for the Amiga is/was a far more common choice for OS-friendly applications than people think.
- mark_round 3y agoNitpick away, always glad to include corrections! > LZX had supplanted LHA already by 1994. True, but LHA always felt like more of the standard and tools were readily available and present on most systems. Sort of like how Bzip2/XZ and so on are technically far superior, yet a gzipped tarball is still the universal standard on Unix systems. A quick glance through AmiNet shows the majority of packages there are still using LHA as standard. Even stuff targetting a "modern" Amiga tends to use LHA - grepping the Os4Depot full package list shows: grep -c '.lha' FULLINDEX.readme 4110 grep -c '.lzx' FULLINDEX.readme 37 > For all practical accounts of programming the CPU it's a 32-bit machine True. I'll update the article to include that - I guess I'm really thinking of things like the 68020 processor (and CD32 which proudly proclaimed "32-BIT" in big letters on the case :) > You're in no way locked to program for AmigaOS in C. Also true. From what I can see, calling & opening the libraries from Assembly is remarkably similar to e.g. C, but from browsing the leaked OS source (not that I'd ever advocate for that sort of thing ;) ) it was all originally in C. I wanted to dive in and get a better understanding of the code as it was originally written hence my experiments targeting C. Plus, I knew enough C from my old University days to get up to speed in a short enough timespan. With no memory protection, crashing my Amiga because I forgot to free some DOS object or other was a common occurrence - if I was attempting this in Assembly, I'd probably still be working on a basic proof-of-concept! Although I really admire the skills of those developers who did choose that language to write system utilities, not to mention the magic of the demo-scene. It's just a bit beyond my abilities/time constraints at the moment!
- harel 3y agoI've just got an A1200, installed the latest Amiga OS 3.2 (on CF card). It sits nicely next to my upgraded A500. But my resolution and UI in either of them is nothing like the one shown in your screenshots. I'm almost jealous. Are you using the Hyperion latest? I mean, look at those colours - they pop!
- mark_round 3y agoThe images from my A1200 are on a very customized OS 3.2/CoffinOS (legally "dubious" AmigaOS distribution favoured by Vampire accelerator users) hybrid system with Faenza PNG icons. But if you have a graphics card (or emulate one in e.g. WinUAE), you can run in high resolutions/bit depths like this. The X5000 screenshots are on a QHD 24-bit resolution as the X5000 is a far more modern machine and has a hardware-accelerated compositor and 3D stack running on a Radeon PCIe card.
- rsync 3y agoWould you please elaborate on, and define most of the terms within, the first sentence of your comment?
- mark_round 3y agoSure! Sorry, I was typing on a phone and it turned into a real word salad/jargon mess :) I was replying to someone asking how I got my "classic" 1990s-era Amiga screenshots to look so fancy. The built in Amiga AGA chipset is pretty limited by today's standards and gets slower/uses more memory the higher you push the resolution and colour depth. Most classic Amigas run on low-res limited colour screens - the default is 640x256 in 4 colours. On an 68030-accelerated Amiga I could just about push it to 800x600 in 256 colours, but it was very sluggish. I now have a Vampire Accelerator card[1] which adds a much faster CPU core, along with an embedded graphics chipset, HDMI output, networking, SD card interface and other nice things. The Vampire "graphics card" is driven through the AmigaOS's support for "ReTargetable Graphics" (RTG). You can read about the setup and installation on my site[2]. My vintage 1992 A1200 is running a hacked together OS, using a base of "CoffinOS" which is a distribution of AmigaOS favoured by Vampire accelerator users. It consists of a classic AmigaOS 3.x installation along with all the Vampire-specific drivers, utilities, games and other things all ready to go out of the box. Because it ships copyrighted AmigaOS binaries and other things that may not be 100% legal to redistribute (and the Amiga scene in general is a litigious mess), I won't link to it but it's easy enough to find[3]. On top of this, I have installed various components from Hyperion's AmigaOS 3.2, so it's a sort of mash-up of two different distributions of AmigaOS. To get my fancy looking icons, I used the "Faenza" icon set in PNG format. Hope that clears it up a bit! [1] There are loads of accelerator options now for classic Amigas that add faster processors, networking, graphics and other cool things. There are some others mentioned in this thread like the TerribleFire series of accelerators, and the PiStorm accelerator based around a Raspberry PI is also proving a very popular and full-featured option. [2] https://www.markround.com/blog/2020/07/21/apollo-vampire-amiga-1200-review/ https://www.markround.com/blog/2020/07/21/apollo-vampire-ami... [3] Side note - Apollo Accelerators (the makers of the Vampire) are working on ApolloOS which is a legally clean distribution of the open-source AmigaOS clone, AROS. This is what you'll get (and is officially supported) if you buy a new Vampire card or stand-alone Vampire V4 system although CoffinOS is still being developed and distributed by a mystery team.
- floor_ 3y agoI remember hearing a gamedev saying the last time he was happy programming was on the Amiga where he had total control.
- anta40 3y agoI'm not old enough to actually use Amiga in the past. My 1st PC was... IBM PC something running MS DOS. But definitely want to learn system programming on retro machines (beside GBA, Nintendo, etc. Just installed FS-UAE and FS-UAE launcher on my Mac. It asked you to provide the ROM of various Amiga machines (A500, A500+, A600, A1000, A1200 etc). I assume pick A500?
- vidarh 3y agoA500 has broadest compatibility of those listed. A1200 is the most capable of those listed (A1200 and A4000 had the upgraded "AGA" graphics chipset) but for emulation it doesn't matter so much as the emulators tends to offer expansions (like e.g. emulated "Picasso" graphics cards for something closer to modern resolutions and colours).