English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

Thread Tools
Old 31 January 2012, 08:57   #1
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
My super simple cross development tool chain - build and run in 15 seconds

After being off the Amiga since the mid '90s, I decided to try coding on it again. I wanted to do my development on PC and test in WinUAE, and I didn't find any complete setups for this, so I put together what is (in my own opinion) a slick, foolproof tool chain that makes it easy to get started.

The steps are super simple:
1. download the package from . https://.com/files/1304660...oolChain_1.zip
2. copy kick13.rom, kick204.rom and kick30.rom into the WinUAE subfolder
3. run build.bat
4. run runa500.bat, runa500plus.bat or runa1200.bat

and voila, you have assembled a piece of code and have it running.

1. No weird configurations needed - it just works! The bat-files set their environments as needed, everything is using relative paths, and UAE is pre-configured for A500, A500Plus, and A1200.
2. Sample code uses a nice, system-friendly startup code (from Comrade J of SAE, with a few bugfixes to make it run a500, and properly check for pal/ntsc)
3. Sample code includes The Player 6.108 - the best music player out there.
4. Uses VBCC/VAsm/VLink, using Kusma's toolchain.
5. Shell demonstrates how C and asm-files can talk back and forth
6. Contains HowToCode7, which I restructured as a PDF-file, because I couldn't find a PDF online. (Direct Link to HowToCode7.pdf: https://.com/files/672015758/HowToCode7.pdf)
7. Contains a solution for Visual Studio 2010, if you (like me) like the interface - but it's not required

Please report ANY problems/issues/feedback in this thread, and I will try to accommodate before future builds

Last edited by xxxxx; 31 January 2012 at 12:56.
xxxxx is offline  
Old 03 February 2012, 17:53   #2
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
Version 2 is out - lots of improvements - here are the largest

Starting protracker (2.3d, 3.15, 3.62) is now another one-click feature, as is the p61 converter tool
added a wav to raw conversion bat-file, so tracking should be easy for everyone
A4000_40 configuration
batch files work both with amigaforever and traditional roms
fixed configuration problem in setpaths
moved as many files out of the root folder as possible, to keep it cleaner

Startup Code
VBlank Interrupt added
Added flag to block multitasking (old-school mode), which also blocks blitter
added flag to disable cache (for self-modifying code)
Added an input handler to properly block input fallthrough

Get it here: https://.com/files/3850140...oolChain_2.zip
xxxxx is offline  
Old 03 February 2012, 19:03   #3
Black Lives Matter

Akira's Avatar
Join Date: May 2001
Location: New York
Posts: 19,517
Man, I loved this. Found it on Pouet a couple of days ago.
It will prove very useful in my learning of Amiga programming that I want to embark upon this year.

Thank you so much.
It's a shame you are hosting this on services like , perhaps you want some hosting space? I could provide you with some, and also some little web space for a blog or whatever if you feel like it.
Akira is offline  
Old 03 February 2012, 20:59   #4
Needs a life

chiark's Avatar
Join Date: Jan 2008
Location: England
Posts: 1,689
I'll give this a try - will save a little bit of messing around, so thank you!
chiark is offline  
Old 04 February 2012, 06:29   #5
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
@akira: thanks for the offer, but I am good, I just need to post it to scene.org. I was just waiting for the first 2-3 releases and the related bug reports and fixes before doing it
xxxxx is offline  
Old 08 February 2012, 08:52   #6
Posts: n/a
This sounds really cool for me who don't know how to code but wants to learn. But I have a problem.

If I don't have Visual Studio, how do I or where do I or what do I start to be able to start coding?

This might be something that is obvious to most people or at least people who know how to code already. Or maybe I'm missing something obvious, like "you need to have another program to code in".

Old 09 February 2012, 05:39   #7
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
Here is the final release (for now): https://.com/files/2789918...oolChain_3.zip

Major Changes:
Now works with winuae's built-in Aros rom. You don't even need kickstart anymore! Just click build.bat and runaros.bat to build and run your code.
3 major code fixes to fix my stupid errors when merging different startup codes together

Feel free to upload this to other sites. I tried to upload to various places, but aminet has corrupted the zipfile, scene.org still has the file in its' incoming directory, and untergrund.net has not approved my account request yet. My goal is that once I have a proper location for this, I will register a pouet.net prod, and that is where I invite everybody to write their comments/bugs/feature requests.
xxxxx is offline  
Old 16 February 2012, 06:41   #8
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
V4 is out - it can be found here: http://www.pouet.net/prod.php?which=58703. Please post comments there
xxxxx is offline  
Old 01 May 2012, 01:37   #9
Posts: n/a
Thought I'd mention that I've been having a blast with this and that I really appreciate this tool chain!

I haven't tried the visual studio integration yet but have been getting on o.k with Notepad++ and assigning the batch files to shortcut keys within Notepad++

I've been learning ASM via this forum (Mostly from Blippym's diary thread) and this toolchain has made it simple to try out new bits of code without having to fire up WinUAE and wait for devpac to load. I really liked the inclusion of the startup routine which helped me get straight in and start coding without having to worry about the daunting task of writing my own.

Again really appreciate this :-D

I even used it to assemble and run the Bullfrog ASM tutorial published in Amiga Format.

~ Hypno
Old 01 May 2012, 16:46   #10
Registered User
Join Date: May 2004
Location: Somewhere secret
Age: 47
Posts: 333
"...without having to fire up WinUAE and wait for devpac to load."

Why not just save a UAE snapshot of everything, then you can almost instantly be ready to code?! Also why use devpac?
WayneK is offline  
Old 02 May 2012, 00:28   #11
Posts: n/a
Haha good point R.E Devpac... well the hint was in my post where I said 'Bullfrog ASM tutorial' so you can probably gauge what level I'm at.

I'm still at the brain melting stage of learning and still having to stop myself from asking why exactly I'm putting myself through this ;-D
Old 02 May 2012, 08:36   #12
pmc's Avatar
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
Originally Posted by WayneK
Also why use devpac?
Originally Posted by hypnoshock
Haha good point R.E Devpac...
Errrr, no. It's not a good point re: Devpac. It's Wayne indulging in his usual bashing of my choice of assembler.
pmc is offline  
Old 03 May 2012, 00:59   #13
Posts: n/a
Ha.. sorry PMC, I thought that perhaps Devpac wasn't the tool of choice anymore and that it emphasised my noob status. I suppose as long as I'm not using SEKA we're alright right?

Look brothers, let's not fight amongST ourselves here.. surely if there were any bashing to be done it could be aimed at more worthy opponents.. Not saying who here... but clue in the sentence.. ahem ;-D (ahh the good ol' days)
Old 22 June 2012, 03:18   #14
Registered User
Join Date: Oct 2011
Location: At home :)
Posts: 18
Personally, I am only using the included startup code in ASMPro on a real Amiga.

It includes some nice fixes and additions to the good old HowToCode7 StartUp code and works very well, in some respects better than others.

So although I don't use the cross-dev part of it, it's still much appreciated. Thanks a lot!
Jasmin68k is offline  
Old 07 October 2012, 22:29   #15
Registered User
Join Date: Oct 2012
Location: Germany
Posts: 493
I just stumbled over this and couldn't believe how easy it was to set up. It'll help me a lot to get my old 90s-stuff working on my recently resurrected RTG-A4k.

The only bad aspect is, that it might reduce the A4k to a testing machine, since debugging on the PC is well....comfortable.

Thanks a lot!
bubbob42 is offline  
Old 19 February 2015, 13:06   #16
Moon 1969 = amiga 1985

turrican3's Avatar
Join Date: Apr 2007
Location: belgium
Age: 45
Posts: 3,687
no chances to have an update ?
turrican3 is offline  
Old 20 February 2015, 03:28   #17
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
is anything missing? I don't update unless there is a good reason
xxxxx is offline  
Old 20 February 2015, 17:08   #18
I Identify as an Ewok
Steve's Avatar
Join Date: Jul 2001
Location: North Lincolnshire
Age: 42
Posts: 2,326
Holy crap, that's well impressive! I might have to learn Asm using this from now on instead of Devac 3 under WinUAE. Thank you very much! I've tried it in Visual Studio and it runs perfectly using the 'Local Windows Debugger' tool/icon. Wasn't expecting that. Really nice work. Is it possible to get colour coded keywords like in C/C++ code? For example have the comments in green and commands blue or something?
Steve is offline  
Old 20 February 2015, 19:40   #19
Registered User

Join Date: Jun 2014
Location: milan / italy
Posts: 160
What do you mean? Could you debug remotely, from inside VS symbolic debugger, the code running on the emulated Amiga?
ovale is offline  
Old 21 February 2015, 02:25   #20
Registered User
Join Date: Jan 2012
Location: N/A
Posts: 38
As a matter of fact, I have set up syntax highlighting for myself (a fairly accurate solution), but have not packaged it up in a useful format yet.

No, no debugging inside visual studio - but hitting f5 launches winuae and launches the assembled program
xxxxx is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Competition: Chain Game Galahad/FLT EAB's competition 19 28 June 2013 20:13
2D, Gun and Run, Side scroller, similar to Super Probotector/Contra 3, brain boss. Gravox Looking for a game name ? 2 08 February 2010 04:55
a problem on scsi-chain Bamiga2002 support.Hardware 15 28 October 2009 16:09
A little simple tool zeGouky project.Sprites 7 05 November 2005 21:52
Eclipse-Plugin for Amiga-Cross-development Paul News 1 04 September 2004 17:36

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Page generated in 0.13037 seconds with 13 queries