English Amiga Board


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

 
 
Thread Tools
Old 05 February 2020, 18:59   #1
rcman
Long time Amiga Owner
 
rcman's Avatar
 
Join Date: Jun 2017
Location: Uxbridge Canada
Age: 56
Posts: 182
M68K and libraries

Hey all,

When I compiled on my A2000 I used to have this script setup for compiling. In the S directory I'd have this file.

a68k <filen>.asm -q -o<filen>.o -i:include
blink <filen>.o library :lib/amiga.lib to <

I'd have an alias to asm in my Shell-Startup

alias asm execute s:asm []

Is it still done this way? I have downloaded the newest amiga.lib but it crashes this blink command.

blink finalv1.o library dh0:libs/amiga.lib

It's been a long time since I've done this. Can someone help me out?

Thanks
RC
rcman is offline  
Old 05 February 2020, 19:54   #2
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Quote:
Originally Posted by rcman View Post
a68k <filen>.asm -q -o<filen>.o -i:include
blink <filen>.o library :lib/amiga.lib to <
There is an argument missing for the "<". Actually, is this a script for execute? If so, then a ".key" directive is missing at its start.


Quote:
Originally Posted by rcman View Post

Is it still done this way? I have downloaded the newest amiga.lib but it crashes this blink command.
Well, it is typically done with a makefile.




Quote:
Originally Posted by rcman View Post
blink finalv1.o library dh0:libs/amiga.lib
The target file is missing, i.e. "TO finalv" as additional arguments to blink.
Thomas Richter is offline  
Old 05 February 2020, 20:04   #3
rcman
Long time Amiga Owner
 
rcman's Avatar
 
Join Date: Jun 2017
Location: Uxbridge Canada
Age: 56
Posts: 182
Quote:
Originally Posted by Thomas Richter View Post
There is an argument missing for the "<". Actually, is this a script for execute? If so, then a ".key" directive is missing at its start.



Well, it is typically done with a makefile.





The target file is missing, i.e. "TO finalv" as additional arguments to blink.
Thank you for the reply. I am not sure what you mean by .key I have been away from Amiga for a long time.

Yes the asm file is this currently

a68k <filen>.asm -q -o<filen>.o -i:include
blink <filen>.o library :lib/amiga.lib to <

The hard drive on my amiga got currupt so I don't know what it had before.

RC

Update:

So I can use the asm command. It says it cannot find amiga.lib even though it's there.

RC



Update2:

I got it all working. Thank you for helping me fix this.

RC

Last edited by rcman; 05 February 2020 at 20:16.
rcman is offline  
Old 05 February 2020, 21:03   #4
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Quote:
Originally Posted by rcman View Post
Thank you for the reply. I am not sure what you mean by .key I have been away from Amiga for a long time.
If you want to use argument substitution in shell scripts, you need to provide a ".key" describing the arguments, e.g.
Code:
.key filen
as first line of the script. Then "<filen>" will be substituted by the argument given to the script.


Quote:
Originally Posted by rcman View Post
So I can use the asm command. It says it cannot find amiga.lib even though it's there.
Where is "there"? According to your command line, it is in :lib, that is, in the current drive, in the top-level directory named lib. Did you probably mean "lib:" instead? This would mean "in the directory assigned to lib:".
Thomas Richter 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
m68k-amigaos-gdb bebbo Coders. C/C++ 94 06 May 2023 21:56
Libraries Syntrax support.Other 6 31 March 2019 15:59
Csound 3.481 on m68k squidbass Amiga scene 5 21 July 2013 21:29
Rewriting m68k code RobSis Coders. Tutorials 1 26 January 2013 16:15
#M68k @ Amigaworld.net Iznougoud Amiga scene 0 06 October 2007 16:35

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 09:59.

Top

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