10 March 2013, 16:28 | #1 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
First tutorial on ASM- and HW-coding
So, let's see if there is any real interest in tutorials about coding the Amiga - the old way.
Assembled with ASM-ONE v1.20 and only tested on WinUAE at the moment. The first code is about "copperbars", nothing really fancy, but I have to start somewhere, and nothing is more Amiga than copperbars. The site: vikke.net Many other codesnippets are planned, if people are interested in reading such things. It is possible to download an LHA-package with all files (asm source, executable and resources) Any questions regarding the code, or related things? |
10 March 2013, 19:11 | #2 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Yes very interested, but I think you need to start earlier with tutorials
|
10 March 2013, 19:23 | #3 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
|
kudos for the initiative, but maybe the resources would be better spent digging up and rating such tutorials from the past!? there's lot's of them in old disk mags, etc...
|
10 March 2013, 19:48 | #4 | |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
Quote:
You can read about my motives here: http://amigaworld.net/modules/newbb/...37325&forum=15 |
|
10 March 2013, 19:52 | #5 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I'll go into more detail:
If you are doing tutorials then you should assume the person wanting to learn has very little asm knowledge, and build up from that. Your first tutorial assumes the person reading has knowledge of both asm and the Amiga hardware. It would be better with something much simpler like opening a screen, then displaying a copper, then displaying a picture logo etc and build on it. Be prepared to answer lots of questions too I think the website design is great and your source has plenty of commenting |
10 March 2013, 19:56 | #6 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
|
10 March 2013, 20:21 | #7 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
There are a few members here who would like to learn asm, but it needs to be done properly.
I'm sure there'll be a few more replies |
10 March 2013, 20:23 | #8 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
I am very interested but I need to be walked along teh basics. I can read a bit of ASM and can do some 6502 ASM but that's it.
|
10 March 2013, 20:38 | #9 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Vikke, I have downloaded notepad++. Where can I get the syantax higlighting you are using??
|
10 March 2013, 21:04 | #10 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
I can try to make an introductory to MC68000 assembly and a little about how to set up the display and such things.
Of course all of this is available in books already, but I know the books aren't the easiest to read. The original Amiga Hardware reference Manual is a very good starting point for learning how the original Amigas worked and how to use them in your code. But, as I said, I will try to make introductory chapters into MC68k ASM and the Amiga hardware registers, with examples. I will be doing these simultaneously as I continue with other demoeffects. So there is going to be something for everyone. Nice to know there are people interested in this. |
10 March 2013, 21:05 | #11 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
All I'll say on this is don't confuse having source codes with learning assembly language coding. Source codes are how somebody else would do something, not how you would do it.
If source codes were the answer to the question "how can I be a coder" then that question wouldn't need answering any more - there are already lots of source codes available all over the place. There's even a few I've posted There are, in my opinion, several fundamental things that source codes won't help you with in any way, shape or form, namely: Independent thought. Taking time, sitting down and thinking how to solve something in code can only be done by taking time, sitting down and thinking. Nothing else. Experience. Actually writing code, getting it wrong, working out why, fixing it, trying something else, over and over is the only real way to learn - from your own mistakes. Time. There are no shortcuts. I would say going from complete beginner to confidently tapping out good clean, compact, decently optimised code that you're pretty sure will work first time takes at least two years of good solid effort ie. not five minutes of playing around with a bit of code here and there. Even doing all of the above more difficult stuff still might not make you a brilliant coder - I've done all the things I said and I'm still nothing more than solid but average. Anyway, just my tuppence on the actual process of learning. Regardless, kudos to you Vikke for making the effort to get a resource like this together |
10 March 2013, 21:27 | #12 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
bippym,
Notepad++ doesn't have a syntax highlighter for MC68k ASM, I'm using Sublime Text 2 for that. I found this: https://github.com/stevenjs/M68k-Assembly for Sublime Text 2. There is a syntaxhighlighter for Notepad++, but it needs a little work to be usable. I'll try to do something to it. |
10 March 2013, 21:29 | #13 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
pmc,
I agree totally and that isn't what I am suggesting here. I am saying that to "Teach" requires more than source code. It requires explanation, examples and ensuring your audience understands. I think "teaching" something and then setting a task to fulfill is the way to learn! |
10 March 2013, 21:35 | #14 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
pmc,
Of course learning to code in assembly isn't the easiest of things. And time is something you have to spend, and "trial-and-error" is the best of methods to learn things. I didn't set out to make a course in how to do code, at first I just wanted to make a demo or two, the oldskool way. But, now this has taken a different route. I try to keep the sources as short as possible for others to be able to find something of interest in them, and also with a lot of remarks in the source. As I wrote earlier I'll try to make some kind of tutorials for how to start coding on the Amiga. |
10 March 2013, 21:51 | #15 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
I've already started it, and have most of the hardware names in.
It has some issues and limitations which I will post on the notepad++ forums. Here is a screenshot |
10 March 2013, 22:29 | #16 |
Registered User
Join Date: Feb 2013
Location: Lovisa / Finland
Age: 53
Posts: 80
|
Well, it seems its not easy to get a working syntax highlighter for Notepad++ in its current stage. It doesn't understand hex- or binarynumbers. Also a lot mor should be possible to do with delimiters. It seems Sublime Text does utilize regexp for the highlighter engine.
|
10 March 2013, 23:39 | #17 |
Unregistered User
Join Date: Sep 2012
Location: Copenhagen / DK
Age: 43
Posts: 4,190
|
I started working a bit with 68k ASM a few months ago, and was also looking for some good tools, and I came across this:
http://www.pouet.net/topic.php?which=8593&page=1 It's a crosscompiler for C/ASM with automatic execution in WinUAE. Very straightforward setup for anyone who wants to start coding. It even has a project file for VS2010, although I'm guessing the syntax highlighting in there will not work with 68k ASM? |
11 March 2013, 00:13 | #18 | |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Quote:
Vikke, I will certainly be checking out your site. |
|
11 March 2013, 13:16 | #19 |
Registered User
Join Date: May 2001
Location: ?
Posts: 19,645
|
Notepad++ 68k asm highlighting available here:
http://sourceforge.net/apps/mediawik...Language_Files |
11 March 2013, 13:22 | #20 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
Akira,
I have taken that one and added highlighting for the Amiga chipset access. The problem comes with the registers not being highlighted for example Code:
move. l d0, d1 Code:
move.l d0,d1 I will upload the file for highlighting once it's finished Last edited by BippyM; 10 July 2013 at 22:56. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
4th tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 11 | 10 April 2013 20:32 |
3rd tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 6 | 26 March 2013 15:57 |
2nd tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 10 | 17 March 2013 11:49 |
REQ: AF 115 (C Coding Tutorial) | quenthal | AMR suggestions and feedback | 2 | 23 July 2007 14:08 |
Help coding | alexh | Coders. General | 14 | 15 August 2006 09:24 |
|
|