English Amiga Board


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

 
 
Thread Tools
Old 17 January 2013, 12:36   #1
obiwanken
Registered User
 
Join Date: Jan 2013
Location: Slovakia
Posts: 27
Assembler APP.PATH

Iam looking for something like APP.PATH in Visual Basic.
Is any way how to find "Program/App path" in Amiga assembler ?

Thanks.
obiwanken is offline  
Old 17 January 2013, 12:55   #2
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 818
depending on what you're trying to do, you can either use the automatic "PROGDIR:" assignment or read the "pr_HomeDir" field of your process (which you get by doing "FindTask(NULL)".

None of the above is assembler-specific, btw..
hooverphonique is offline  
Old 17 January 2013, 13:28   #3
obiwanken
Registered User
 
Join Date: Jan 2013
Location: Slovakia
Posts: 27
Simple steps:

1. Program starts from HDD.
2. Allocate some Chip mem.
3. Load GFX,Music,Any data from Home directory (HDD) to allocated memory.

Months ago I found sample program on some forum (French, I think), but I dont know where and still looking for it.
obiwanken is offline  
Old 17 January 2013, 14:16   #4
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 818
well, no need to look any further, just do what I described :-)
hooverphonique is offline  
Old 17 January 2013, 15:58   #5
obiwanken
Registered User
 
Join Date: Jan 2013
Location: Slovakia
Posts: 27
"PROGDIR:" sounds good but when I used it Iam requested to insert volume "PROGDIR"

I dont know how to use findtask() and pr_HomeDir , but i found this:

curdir.zip

Just I want simpliest way.
obiwanken is offline  
Old 17 January 2013, 21:10   #6
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 818
hmm.. are you using kickstart 1.2 or 1.3? my suggestions only work on 2.0+..

also, if you aren't able to figure out how to call FindTask(), I'm afraid you will never succeed implementing all that stuff above that you call "simple steps"..
hooverphonique 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
Flight Path 737 Bamiga2002 Games images which need to be WHDified 12 14 April 2013 22:53
2.2 default path changes sun68 support.WinUAE 4 19 July 2010 22:31
Path command... illy5603 New to Emulation or Amiga scene 16 29 September 2008 01:15
Auto path change? Djay request.UAE Wishlist 7 23 April 2006 01:29
Golden Path coach support.Games 3 16 December 2002 23:09

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 01:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06395 seconds with 16 queries