English Amiga Board


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

 
 
Thread Tools
Old 25 April 2013, 11:51   #1
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
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.
Louk is offline  
Old 29 April 2013, 22:28   #2
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
Post 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
Louk is offline  
Old 29 April 2013, 22:34   #3
prowler
Global Moderator

prowler's Avatar
 
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.
prowler is offline  
Old 29 April 2013, 22:35   #4
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 40
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).
Lonewolf10 is offline  
Old 29 April 2013, 22:49   #5
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
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.
Louk is offline  
Old 29 April 2013, 23:29   #6
Lonewolf10
AMOS Extensions Developer
Lonewolf10's Avatar
 
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 40
Posts: 1,924
Can you list some of the errors here?
Lonewolf10 is offline  
Old 29 April 2013, 23:55   #7
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
Yeah no problem, attatched
Attached Thumbnails
Click image for larger version

Name:	Devpac Amiga Error.png
Views:	1344
Size:	55.4 KB
ID:	35214  
Louk is offline  
Old 30 April 2013, 00:00   #8
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,819
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.
Photon is offline  
Old 30 April 2013, 00:07   #9
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
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.
Louk is offline  
Old 30 April 2013, 07:10   #10
Den
Registered User

 
Join Date: Apr 2012
Location: Velaux / France
Age: 52
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.
Den is offline  
Old 30 April 2013, 12:31   #11
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,690
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.
phx is offline  
Old 30 April 2013, 13:06   #12
NovaCoder
Registered User
NovaCoder's Avatar
 
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 3,810
Here's my 3.9 SDK assembler includes (with Funky Def defined).

Last edited by NovaCoder; 08 July 2013 at 06:34.
NovaCoder is offline  
Old 30 April 2013, 15:46   #13
Den
Registered User

 
Join Date: Apr 2012
Location: Velaux / France
Age: 52
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.
Den is offline  
Old 30 April 2013, 20:24   #14
Photon
Moderator

Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 4,819
Quote:
Originally Posted by Louk View Post
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.
Nothing to do with them being old. The OS is old and unchanged, just like the includes. So they're a perfect match

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!
Photon is offline  
Old 08 May 2013, 08:03   #15
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
Arrow

Sorry for the delay guys, was away last week, thank you very much for your kind help - I will have a go now!
Louk is offline  
Old 08 May 2013, 08:36   #16
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
Have got it to compile but now nothing happens in Devpac 2, ArgAsm gives me errors.
Louk is offline  
Old 08 May 2013, 12:32   #17
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,690
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.
phx is offline  
Old 08 May 2013, 14:10   #18
Den
Registered User

 
Join Date: Apr 2012
Location: Velaux / France
Age: 52
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.
Den is offline  
Old 08 May 2013, 17:15   #19
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
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
Louk is offline  
Old 08 May 2013, 17:16   #20
Louk
Registered User
 
Join Date: Mar 2007
Location: Plymouth
Posts: 86
Yep working great - didn't realise that was what it was supposed to do, thought the screen was meant to change colour.
Louk 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
DevPac 3.xx Includes souls Coders. General 38 03 January 2015 21:05
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

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 02:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.09281 seconds with 14 queries