25 April 2013, 11:51 | #1 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Argasm / Devpac Includes problem.
Hey all!
Have been trying to get the Menace tutorials from Amiga Format issue 7 working using Winuae running Argasm I have downloaded a set of includes and referenced the location of the includes properly but still get an error when trying to compile. I have seen conflicting files for the files referenced here, Does anyone have the correct ones for this so I can get the tutorial running? http://amr.abime.net/amr_popup_pictu...67.jpg&c=81605 All the best Louk Last edited by prowler; 26 April 2013 at 02:07. Reason: Fixed link. |
29 April 2013, 22:28 | #2 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Argasm / Devpac Includes problem.
Hey guys, think I posted my topic in the wrong forum as both are assemblers, please can someone help?
Really want to get cracking and this is my biggest obstacle at the moment. Many thanks to all who can help! Louk |
29 April 2013, 22:34 | #3 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
Hi Louk,
I've merged your threads and placed the resulting thread in the appropriate subforum. |
29 April 2013, 22:35 | #4 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Louk,
Which one are you using: Argasm, Devpac, or both? Also, which version are you using? If you are using Devpac 3.18 I can help. I haven't used Argasm (yet). |
29 April 2013, 22:49 | #5 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Lonewolf, I tried it on both the Argasm that came with Amiga Format 7 and Devpac 2 that came with AF 39... and added the includes that I downloaded but there were still errors.
|
29 April 2013, 23:29 | #6 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Can you list some of the errors here?
|
29 April 2013, 23:55 | #7 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Yeah no problem, attatched
|
30 April 2013, 00:00 | #8 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,615
|
Looks like you have the wrong set of includes there - or at least the ones from the C= library programming books don't show the FUNCDEF macro, and none of the identically named include files I've used have it.
Should be on our FTP, if not on Aminet. Right? So just get them from the right source and they'll assemble. If these are some assembler-specific include files, that's not a good idea. Not for a simple list of constants, anyway. If it is and you still want to use them, you'll have to find the include that defines FUNCDEF and include that before these. |
30 April 2013, 00:07 | #9 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Yeah - the tutorial says to include those 4 files http://amr.abime.net/amr_popup_pictu...67.jpg&c=81605
And the mag is well old so I am guessing it's a very early set of includes. I got a set of includes but guessing they arent the right ones..... Shame Really want to get this code working. |
30 April 2013, 07:10 | #10 |
Registered User
Join Date: Apr 2012
Location: Velaux / France
Age: 56
Posts: 16
|
That "FUNCDEF exec_lib.i" can be found in both NDK 3.1 and 3.9. They have an example of what a FUNCDEF macro should look like in exec/libraries.i (it's hidden in the comments).
All this macro is supposed to do is define _LVOs by prepending _LVO to each function name and substracting -6 on each call from a counter starting at -30 (which is exactly what the LIBENT macro does in dos_lib.i in the same set of includes...) So you should be able to use any* exec_lib.i that starts with something like "_LVOSupervisor EQU -30" instead of "FUNCDEF Supervisor", the latest ones shouldn't have any problem on an older source. *Some of these files also define a CALLEXEC macro, others don't, your source might rely on that macro. |
30 April 2013, 12:31 | #11 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
The FUNCDEF macro was never defined in official Commodore includes. You always had to provide your own macro. And the Commodore includes also didn't provide a #?_lib.i file for each library.
I remember that Devpac had their own set of #?_lib.i files, which defined all library offsets simply by EQUs. You should get those. The tutorial might be refering to them. |
30 April 2013, 13:06 | #12 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Here's my 3.9 SDK assembler includes (with Funky Def defined).
Last edited by NovaCoder; 08 July 2013 at 06:34. |
30 April 2013, 15:46 | #13 |
Registered User
Join Date: Apr 2012
Location: Velaux / France
Age: 56
Posts: 16
|
Once you have the includes question sorted out, you'll need to move the "_SysBase equ $04" line outside the conditional statements if you're not using ArgAsm.
Other than that, the source assembles without problem using vasm. |
30 April 2013, 20:24 | #14 | |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,615
|
Quote:
What's the shame? It's just a set of include files that didn't assemble. Just swap them out as we advise or have a look inside NovaCoder's zip file and you're off! |
|
08 May 2013, 08:03 | #15 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Sorry for the delay guys, was away last week, thank you very much for your kind help - I will have a go now!
|
08 May 2013, 08:36 | #16 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Have got it to compile but now nothing happens in Devpac 2, ArgAsm gives me errors.
|
08 May 2013, 12:32 | #17 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,500
|
What kind of errors? And what do you mean with: it compiles, but nothing happens? So Devpac created an executable, but nothing happens when you start it?
Please provide some detailed output or screen shots, so people have a chance to help you. |
08 May 2013, 14:10 | #18 |
Registered User
Join Date: Apr 2012
Location: Velaux / France
Age: 56
Posts: 16
|
Just to make it clear, it's not supposed to do much. It's just a startup code to "kill" the system on launch and restore it on exit.
You only get a blank screen and the program just waits for a mouse click to exit. |
08 May 2013, 17:15 | #19 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Ah sorry PHX I went to sleep after trying. Den ah sorry I didn't realise that, maybe it is working after all then haha! Will try it now. Many thanks.
Louk |
08 May 2013, 17:16 | #20 |
Registered User
Join Date: Mar 2007
Location: Plymouth
Posts: 128
|
Yep working great - didn't realise that was what it was supposed to do, thought the screen was meant to change colour.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DevPac 3.xx Includes | souls | Coders. General | 40 | 12 March 2021 21:35 |
Resource, Devpac and ArgAsm | Forger | request.Apps | 14 | 02 December 2012 23:12 |
Devpac includes | Seoman | request.Apps | 2 | 15 April 2010 00:19 |
DevPac 3 and includes | Camionsauro | Coders. General | 10 | 20 April 2009 15:23 |
Devpac 3.x includes | lpopman | request.Apps | 2 | 14 November 2004 17:28 |
|
|