English Amiga Board


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

 
 
Thread Tools
Old 03 March 2022, 20:14   #41
Radertified
Registered User
 
Join Date: Jan 2011
Location: -
Posts: 728
That sounds like what my issue is related to because I'm using the old, free P96.

Thanks for the info, Phantasm.
Radertified is offline  
Old 27 September 2023, 05:04   #42
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Thanks for this.

A project I always wanted to do but never had enough time was to parse .rs files and extract the work already done in some way where it could be imported into Ghidra. Disassembling Resource was the hurdle, so now I have no excuse.

Any chance you can commit the .rs file for this to the Github repo? This is something I appreciate about the Bloodwych repo there.
copse is offline  
Old 27 September 2023, 05:10   #43
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Did anyone download the library resource files from ultimateamiga forum (which no longer allows logins)? @NorthWay? I see I was in that thread assembling resource way back when and even did some of the work towards reversing the .rs files. No recollection whatsoever! I've used the forum feature to "email" NorthWay.. does it work? No idea :smile

Edit: Found a side link that allows login using my old login. The lib downloads on posts are not present as wepl points out.

Last edited by copse; 27 September 2023 at 05:32.
copse is offline  
Old 27 September 2023, 07:20   #44
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 31,607
Quote:
Originally Posted by copse View Post
Did anyone download the library resource files from ultimateamiga forum (which no longer allows logins)?
I can still log in. Could you post the link which has the files?
TCD is offline  
Old 27 September 2023, 09:30   #45
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
Quote:
Originally Posted by copse View Post
Any chance you can commit the .rs file for this to the Github repo? This is something I appreciate about the Bloodwych repo there.
The .rs files are in the 'resourced' branch, https://github.com/wepl/ReSource/tree/resourced
Also contained are unfinished attempts for ReSourcesyms.library and ReSourceutil.library.
Wepl is offline  
Old 27 September 2023, 12:23   #46
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
Quote:
Originally Posted by copse View Post
Did anyone download the library resource files from ultimateamiga forum (which no longer allows logins)? @NorthWay?
Do you still need it? I can trawl my WinUAE later tonight if needed. I think I should have it there.
NorthWay is offline  
Old 27 September 2023, 15:48   #47
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
Quote:
Originally Posted by NorthWay View Post
Do you still need it? I can trawl my WinUAE later tonight if needed. I think I should have it there.
Than would be nice.
Wepl is offline  
Old 27 September 2023, 20:12   #48
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Quote:
Originally Posted by Wepl View Post
The .rs files are in the 'resourced' branch, https://github.com/wepl/ReSource/tree/resourced
Also contained are unfinished attempts for ReSourcesyms.library and ReSourceutil.library.
Thanks, I must be blind! I'll also check if I have any hard drive backups for the files from bruceuncle, I must have some old WinUAE files somewhere.
copse is offline  
Old 28 September 2023, 07:46   #49
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
I added a Resource_RS_Files.zip to the zone. It contains resourced libraries, showmacros and the exe from 2015. Are they mine? I don't know why they would be. Are they bruceuncle's? Maybe. I do not know.
copse is offline  
Old 28 September 2023, 08:11   #50
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Quote:
Originally Posted by Wepl View Post
The .rs files are in the 'resourced' branch, https://github.com/wepl/ReSource/tree/resourced
Also contained are unfinished attempts for ReSourcesyms.library and ReSourceutil.library.
The resourced branch says it is for 6.6.1. Aren't these the latest versions of the resourcing of 6.0.6? And 6.6.1 changes have to be applied post-save of the asm?
copse is offline  
Old 28 September 2023, 21:11   #51
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
Quote:
Originally Posted by copse View Post
I added a Resource_RS_Files.zip to the zone. It contains resourced libraries, showmacros and the exe from 2015. Are they mine? I don't know why they would be. Are they bruceuncle's? Maybe. I do not know.
Thanks a lot, I will check them when I have some time.
For syms and util I'm going to compare how advanced they are.
If better I would like to add them to github repo. Same for help and ShowMacros.
Would that be ok?

Quote:
Originally Posted by copse View Post
The resourced branch says it is for 6.6.1. Aren't these the latest versions of the resourcing of 6.0.6? And 6.6.1 changes have to be applied post-save of the asm?
The commit message is misleading. They are all based on 6.06.
Wepl is offline  
Old 28 September 2023, 22:44   #52
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Quote:
Originally Posted by Wepl View Post
Thanks a lot, I will check them when I have some time.
For syms and util I'm going to compare how advanced they are.
If better I would like to add them to github repo. Same for help and ShowMacros.
Would that be ok?
These are now confirmed to be Bruce's files. I doubt he would care. As far as I am concerned, it's fine with me.

Last edited by copse; 29 September 2023 at 00:29.
copse is offline  
Old 28 September 2023, 22:48   #53
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Quote:
Originally Posted by TCD View Post
I can still log in. Could you post the link which has the files?
The attachments are not present. Either they've been deleted or the forum isn't showing them.
copse is offline  
Old 29 September 2023, 00:53   #54
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
NorthWay kindly sent me his files. He had the same zip as me from bruceuncle, and a 7zip file (just uploaded to the zone as "Resource_RS_Files - NorthWay.7zip") which has larger RS files.. but says he doesn't know where either originate from so these weren't his and are possibly later versions from Bruce.
copse is offline  
Old 29 September 2023, 06:26   #55
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Using 662 I am not able to get partial save of binary or asm to work.

1. Open one of the resource.rs files.
2. Go to $3D3A.
3. Menu: SV / Partial Save / Set Start
4. Go to $AF8A
5. Menu: SV / Partial Save / Set End
6. Menu: SV / Save Binary / Partial.
7. Screen flashes. At this point the requester should instead pop up.

Running 606 it works correctly.
copse is offline  
Old 29 September 2023, 07:48   #56
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
Thanks for the great news of someone still updating Resource 6.
Pyromania is offline  
Old 29 September 2023, 21:21   #57
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
FYI got a guru meditation after making maybe 10 minutes of changes with 662 and trying to save .RS. No identifiable thing I did, reverted to 606.

Does 662 have debug symbols? Is there a way to get a callstack from winuae debugger in these situations?
copse is offline  
Old 29 September 2023, 22:43   #58
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
Was a little lost trying to compile symbols going from the document in 606. Couldn't get resource to load them, just got the painfully unclear screen flash. Eventually, I went back to 5 and disassembled an assembled Janus symbols file there, and realised I was getting an object file not an executable from vasm.

This works:
vasmm68k_mot.exe mysyms.s -Fhunkexe -o mysyms
Of course I spent ages disassembling the symbol loading code

Code:
	move.l	#TemporaryString,D1	;D1 = Symbol file path
	jsr	(DosLoadSeg-RefAddr,A6)
	move.l	D0,(A5)	;D0 = SegList
	jsr	(MaybeError-RefAddr,A6)
	lsl.l	#2,D0	;BCPL
	movea.l	D0,A0
	move.l	A0,-(SP)
	lea	(TemporaryString-RefAddr,A6),A1	;Symbol file path
	move.l	A1,D0
.find_path_end	tst.b	(A1)+
	bne.b	.find_path_end
	exg	D0,A1
	sub.l	A1,D0	;D0 = Path length
	moveq	#12,D1	;Buffer padding
	add.l	D1,D0
	move.l	D0,D2
	jsr	(AllocFunc1AsIs-RefAddr,A6)
	movea.l	(SP),A0	;A0 = Seglist ptr
	beq.b	.copy_init_done
.find_lastseg	move.l	(A0),D1	;NextSeg
	beq.b	.copy_init
	lsl.l	#2,D1
	movea.l	D1,A0
	bra.b	.find_lastseg

.copy_init	movea.l	D0,A1	;A1 = Allocated memory.
	addq.l	#4,D0
	lsr.l	#2,D0	;BCPLification
	move.l	D0,(A0)	;Extend the seglist.
	addq.l	#7,D2	;Align buffer size to 8 bytes
	andi.b	#%11111000,D2
	move.l	D2,(A1)+
	clr.l	(A1)+
	move.l	#'uSnM',(A1)+
	lea	(TemporaryString-RefAddr,A6),A0
.copy_filename	move.b	(A0)+,(A1)+
	bne.b	.copy_filename
	movea.l	(SP)+,A0	;A0 = Seglist ptr
.copy_init_done	movea.l	(4,A0),A0	;Hunk code, starts with table name ptr.
	lea	(tblUserSymbolNames,PC),A1
	movea.l	(A1,D5.W),A1	;A1 = Pointer for given symbol base.
	moveq	#$17,D0
.copy_table_name	move.b	(A0)+,(A1)+
	dbeq	D0,.copy_table_name
	clr.b	-(A1)
copse is offline  
Old 30 September 2023, 02:50   #59
copse
Registered User
 
Join Date: Jul 2009
Location: Lala Land
Posts: 522
I've generated and assembled a symbols file for the macro codes that Resource uses internally. All files are in the zone as Resource606CodeSymbols.7z. There's a bug in that some invalid characters are left in label names for the symbols, but this can be tweaked and checked.
copse is offline  
Old 15 October 2023, 23:05   #60
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
Quote:
Originally Posted by copse View Post
NorthWay kindly sent me his files. He had the same zip as me from bruceuncle, and a 7zip file (just uploaded to the zone as "Resource_RS_Files - NorthWay.7zip") which has larger RS files.. but says he doesn't know where either originate from so these weren't his and are possibly later versions from Bruce.
Some NorthWay files are a bit newer. I have added them to the resourced branch at github. For syms and util libs I see no much gain over mines. But it's good to preserve.

Quote:
Originally Posted by copse View Post
Using 662 I am not able to get partial save of binary or asm to work.

1. Open one of the resource.rs files.
2. Go to $3D3A.
3. Menu: SV / Partial Save / Set Start
4. Go to $AF8A
5. Menu: SV / Partial Save / Set End
6. Menu: SV / Save Binary / Partial.
7. Screen flashes. At this point the requester should instead pop up.

Running 606 it works correctly.
I would prefer to open an issue at github for such reports.
I can confirm this. Needs debugging to find out what the problem is. No code changes here AFAIR.

Quote:
Originally Posted by copse View Post
Does 662 have debug symbols?
See Makefile.
make DEBUG=1
for symbols or SAS/D1
recommend basm because vasm doesn't create symbols for local labels
Wepl 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 6.06 yoki request.Apps 6 04 November 2009 17:29
ReSource? gospodin request.Apps 2 30 March 2009 13:36
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 13:04.

Top

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