English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 04 September 2011, 11:42   #1
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 554
Resource questions

Q1. Task offsets:

Let's say I come across something like this line:

move.l 4, a6
move.l ThisTask(a6), a4
move.l $AC(a4), d0

In Resource 6.06, where do you find the symbols for the $AC? That is, what do you click on in the symbols dialog?

Q2. Does anyone have any productivity tips when a program stores a block of memory in an address register, and then uses offsets of that memory continuously throughout?
copse is offline  
Old 04 September 2011, 12:55   #2
RedskullDC
Digital Corruption
 
RedskullDC's Avatar
 
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
Hi Copse,
Quote:
Originally Posted by copse View Post
Q1. Task offsets:

Let's say I come across something like this line:

move.l 4, a6
move.l ThisTask(a6), a4
move.l $AC(a4), d0

In Resource 6.06, where do you find the symbols for the $AC? That is, what do you click on in the symbols dialog?
Symbols->Exec->Tasks->ExtendedTask ?

Hope this helps.
Red
RedskullDC is offline  
Old 04 September 2011, 13:21   #3
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 554
Nope. In the case of $AC.. that will give (ETask_SIZEOF+$56, A4).
copse is offline  
Old 04 September 2011, 13:36   #4
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by copse View Post
Q2. Does anyone have any productivity tips when a program stores a block of memory in an address register, and then uses offsets of that memory continuously throughout?
First you need to set the base register: Special Functions->Specify Base Register. Then just use either "Special Functions->Convert (xx,Ax) EA's->This operand" or "Special Functions->Convert (xx,Ax) EA's->This address" to convert the offsets to labels. "This operand" uses the address used in the current instruction as base offset, "This address" uses the current cursor address as base offset. I almost always only use "This address", jump to the address that is used in the lea vars,ax instruction and then just ust "This address" to convert all offsets.

Quote:
Originally Posted by copse View Post
Nope. In the case of $AC.. that will give (ETask_SIZEOF+$56, A4).
Use Dos->dosextens->Process

Last edited by TCD; 04 September 2011 at 17:03.
StingRay 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
ReSource? gospodin request.Apps 2 30 March 2009 13:36
ReSource drago request.Apps 2 08 July 2008 00:30
ReSource 6.XX MrZammler request.Apps 7 30 October 2007 14:15
ReSource v6.06 A.I request.Apps 3 08 October 2005 21:25
Resource Amigaboy request.Apps 2 16 August 2001 05:15

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:06.

Top

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