01 October 2010, 21:09 | #41 | |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Quote:
Edit: Sorry, StringRay. I just saw I made the mistake a few messages back, doh! Regards, Lonewolf10 Last edited by Lonewolf10; 01 October 2010 at 21:17. |
|
02 October 2010, 18:02 | #42 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
For anyone doing this course and is not using K-Seka, to add the appropriate files (e.g. "SCREEN" and "MOVETABLE" for program MC0502.s) you will need to use the include commands - INCDIR (INCludes DIRectory) and INCBIN (INClude BINary).
Example for the movetable in MC0502.s: Code:
movetable: * blk.l 3100,0 INCBIN "MOVETABLE" Also, INCDIR must be at the start of the program (to avoid confusion), whereas the INCBIN commands must be placed where you want the included file to be placed. In the above example the file "MOVETABLE" will be added at the location movetable: points to. I have commented out (added the asterisk) before the blk.l instruction as it is not needed when including the "MOVETABLE" file. Oh, my dutch is rusty... what does "Brevkurs" translate to? (bravo?) Regards, Lonewolf10 |
02 October 2010, 20:06 | #43 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
|
02 October 2010, 20:18 | #44 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,603
|
MEMF_PUBLIC was supposed to mean memory that is always available (not paged or swapped or something similar) but it was some future plan that never happened and no one used MEMF_PUBLIC flag properly..
You always get FAST first (if available) as long as you don't request CHIP RAM. MEMF_PUBLIC does not matter. |
02 October 2010, 20:45 | #45 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
But in the context of Amiga assemblers it's important to know that f.ex section something, code_p is what you have to specify to use this allocation scheme, while code_f will require fastmem or slowmem.
|
02 October 2010, 20:55 | #46 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
Section code,code is enough as it'll allocate fast/public mem if available, otherwise chipmem. The _P extension is not required.
|
02 October 2010, 21:02 | #47 | |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Quote:
What's a Swedish word doing in a Danish course?!! Thanks for the translation Another note to anyone doing the course, alot of the example programs end up giving the workbench error message (Returned errorcode X), where X is the current value of d0. To avoid this simply type... Code:
moveq #0,d0 Regards, Lonewolf10 |
|
02 October 2010, 21:57 | #48 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
If you ever try the boring part of Amiga programming, utilities and command line tools, then the Amiga also accepts return values of 5 to indicate a warning, 10 for an error and 20 for a critical error or failure, to aid in debugging. |
|
03 October 2010, 00:56 | #49 | ||
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Quote:
Quote:
Well it seems that workbench accepts any value (0 to 65535) returned in d0. Of course, it's best to stick with normal error values for debugging purposes Regards, Lonewolf10 |
||
08 October 2010, 12:27 | #50 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
When I was typing an asm tutorial a required memory space for a copper list has to be calculated by subtracting the start copperlist label by the end copper list label:
Code:
CLstart: ... copper list ... CLend: Code:
CLsize = CLstart - CLend I do not found anything about this in devpac´s manual Does anyone know how do I can bypass this in devpac? |
08 October 2010, 12:50 | #51 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
Quote:
CLsize = CLend-CLstart. If nothing helps, try to change it to CLsize = *-CLstart and place it right after the CLend label. |
|
08 October 2010, 14:18 | #52 | |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
@StingRay
Thanks for the help. Quote:
I did already tried your tips but none seems to work I will think on other options on how to calculate the memory size of copperlist |
|
08 October 2010, 14:30 | #53 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
You're welcome.
What's the exact error message you get from Devpac? Also, did you correct the order (CLend-CLstart instead of your wrong CLstart-CLend)? |
08 October 2010, 14:50 | #54 |
A1200 040 SAM440EP 667
Join Date: Jan 2008
Location: Lisbon / Portugal
Posts: 873
|
You´re right StingRay..
As I´m at work and had tried your tips very quickly, I do it in the wrong way.. When I corrected CLend - CLstart by CLstart-CLend and without spaces all worked ok. thanks very much. |
30 November 2010, 15:46 | #55 | |
Deluxe Painter
Join Date: Mar 2008
Location: Copenhagen / Denmark
Age: 49
Posts: 61
|
Quote:
Just wanted to see where all the traffic on my page was coming from and I stumbled upon your post. If you don't mind, I would like to put your english version up on my site as well. Cheers Laust |
|
05 December 2010, 17:07 | #56 | |
... aka Amix73
Join Date: Jan 2009
Location: Austria
Posts: 87
|
Quote:
You are very welcome to put it on your page - since it's your stuff anyway Cheers! |
|
06 December 2010, 10:46 | #57 |
Deluxe Painter
Join Date: Mar 2008
Location: Copenhagen / Denmark
Age: 49
Posts: 61
|
I salute you, and the translations are now on my page:
http://palbo.dk/dataskolen/maskinsprog BTW: I hope your leg healed up nicely. |
06 December 2010, 18:31 | #58 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
A big thank you to both of you (Herpes and Popstar), this tutorial helped clear up a few things I didn't understand and has now led to me starting my own demo (hoped to be finished around March 2011).
Regards, Lonewolf10 |
06 December 2010, 21:08 | #59 |
Registered User
Join Date: Nov 2010
Location: .
Posts: 388
|
I'd like to thank Herpes and Popstar too.
Now that the tutorial has been translated I could finally give a glance to the summary and it looks a really useful tool for my ASM training. Many people will probably be grateful for this effort because there are not so many resources of this kind around. Good work! p.s. I'm also curious about the graphic vector document; I could post at some point a reformatted rough google-translation of that document and see if the magic happens again ;-) There seems to be some interesting math in there... Antonio |
31 May 2014, 08:54 | #60 |
Posts: n/a
|
Great work you guys! I just discovered all twelve old letters from the danish mail course back in 1989. They were originally printed on red paper, back in the days, a little hack that ensured that photocopies would come out totally black!
Ok, so I got a hit of nostalgia, and since I never completed this stuff back then, (I guess I was to busy gaming) I thought that now, would be a good time to do it!! Anyways, thanks for keeping it alive! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beginning Amiga Assembly Programming | Hewitson | Coders. Tutorials | 32 | 09 October 2012 18:25 |
Wanted: Amiga Assembly Books | Hewitson | Coders. General | 30 | 25 July 2010 10:56 |
New danish online Amiga & Commodore shop | Retroplay | News | 6 | 25 October 2008 08:55 |
Amiga Assembly sources - Please help! | W4r3DeV1L | Amiga scene | 21 | 16 July 2008 08:13 |
Amiga won at Assembly 2006 | Frog | Amiga scene | 47 | 04 February 2007 19:59 |
|
|