19 February 2020, 17:54 | #1 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
resourced ReSource
Update 2022-02-20:
https://github.com/wepl/ReSource http://whdload.de/whdload/ReSource662.lha Old: To improve the usability and fix bugs in ReSource 6.06 I've resourced and rebuild it. If interested you can find it here: http://whdload.de/whdload/ReSource661.lha Requires full 6.06 package. Source & .rs included. Changes made: version 6.6.1 (2020-02-19) done by Wepl * if screen height is greater than 512 pixel the height of the symbol and macro windows are enlarged to avoid scrolling in the list view gadgets * no longer uses cmp2 instructions on 68060 * on saving an .rs file ReSource now remembers the used filepath in the environment variable ReSourceLastFileName, when ReSource is later started without a file specification it uses the remembered filepath as default original file * clash of two variables for saveRsOriginal fixed which caused Current to be displayed in the menu but Original was active * the save path upon start has been changed from Current to Original for saving .rs/.asm/executable * disassembling of 'btst dn,#x' fixed for x > 7, no longer prints ???? in front of x * some minor optimizations, some dead code/data removed Last edited by Wepl; 20 February 2022 at 22:52. |
19 February 2020, 18:16 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,483
|
Thanks.
Original replaced |
19 February 2020, 18:26 | #3 |
Moderator
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,386
|
Thanx for the updates, anywhere to buy this package new in 2020?
|
19 February 2020, 18:31 | #4 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Thanks, this is very nice, I always wanted to do that as well as ReSource has some quite annoying bugs. I may use your resourced version to fix some more bugs in ReSource.
Edit: You might want to change the release date as I don't think you kept this version for a year on your hard drive. |
19 February 2020, 22:22 | #5 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,819
|
Great thanks. A shared repo would be great so everyone could submit fixes or improvements.
|
19 February 2020, 22:28 | #6 | |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
Quote:
|
|
19 February 2020, 22:35 | #7 | |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
Quote:
1. the legal state is a bit undefined 2. there is no git client for os3 3. I think to enhance the source quality it is still advised to work on the .rs and then merge these changes into the source. At least I have done it this way in the last cycles. |
|
19 February 2020, 23:22 | #8 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 849
|
You might want to look into the search functions as they seem to be writing over things they have no business with - try ROM disassembly.
|
20 February 2020, 01:29 | #9 | |
CaptainM68K-SPS France
|
Quote:
|
|
20 February 2020, 10:29 | #10 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
|
20 February 2020, 13:57 | #11 | |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,819
|
Quote:
|
|
21 February 2020, 17:59 | #12 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 849
|
You can look at http://eab.abime.net/showthread.php?t=89214 which is where I started.
I have downloaded another .rs of it earlier and looked at the search functions, and IIRC it looked like it ended up reading and writing back to the same address. Not smart if searching in ROM, nor making sense to RAM either. |
23 February 2020, 00:29 | #13 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 849
|
I think I have some more bugs stored somewhere - I'll see if I can find them.
Do you feel confident enough to do some deeper changes to ReSource? For some time now I have wished it would save out just the disassembled data/structure so you could release something without having someone roflstomp it because it contains the original binary. Then you could load up the standalone release file and have it ask for the matching binary. |
24 February 2020, 18:01 | #14 | ||
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
Quote:
I never used/tested disassembling memory. ATM I don't have time to look on this. Quote:
No. I have only tried to understand what was related to the changes I made. There is still many code which is not reviewed/understood. |
||
26 February 2020, 18:29 | #15 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 849
|
Btw, do you know of this? https://www.ultimateamiga.co.uk/inde....html#msg46914
I have a bundle of hits I have gotten from ReSource at various times. I think they should all be from 6.06. Not sure if they will be of any help, but listing them can't hurt. There is also some kind of display bug where it will (IIRC) more or less lock up if you play around with hex display and move backwards in the listing. Something about the visual presentation anyway. Haven't used it in a long time... |
26 February 2020, 23:53 | #16 | ||
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
Quote:
A fully resourced ReSourcesyms.library.rs would be nice and allow easily to add at least some new LVOs for kick3.1 (exec, dos). I started resourcing it but lost motivation. I never looked into ReSourcehelp.library.rs that would be win too. Quote:
not of much help without steps to reproduce |
||
27 February 2020, 14:23 | #17 |
Registered User
Join Date: May 2013
Location: Grimstad / Norway
Posts: 849
|
Yes. I registered on the forum and downloaded them. That is how I knew it was in the search functions the problems with ROM disassembly was.
I know, but that was the closest I could remember. My 4000 is semi-borked, but that bug should be possible to find in UAE too. I'll try fishing for it one of these days. |
17 October 2020, 20:57 | #18 |
68k
Join Date: Sep 2005
Location: Somewhere
Posts: 828
|
I am not sure if this is bug, but ...
I save block memory (WinUAE debugger command S C0 $10000). Then I load as binary to Resource. Then I choose Origin/Specify and type $C0. first instruction in $c0 is Code:
jmp ($844).w ;$4ef80844 Code:
jmp START+$784 ;$784 = $844-$c0 |
18 October 2020, 21:02 | #19 |
Moderator
Join Date: Nov 2001
Location: Germany
Posts: 873
|
This is a known limitation. Absolut.w are not considered. Would be nice to have that fixed but upto now nobody has.
|
06 February 2021, 21:18 | #20 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,819
|
Are the bugs below from http://amiga-dev.wikidot.com/tool:resource fixed in your version?
Creates .w offsets for some .b type branches when near the +/-127/128 byte offset limits. Especially when branching ahead. (Source: RedSkullDC on English Amiga Board). Creates incorrect word offsets when code with an offset in the relocation table resolves to an absolute location outside the HUNK that the relocation table belongs to (The apple2000 V1.3 emulator is a good example of this). In reality, this is pretty hacky hand-assembly anyway. Doubt you would ever see a compiler produce such code. (Source: RedSkullDC on English Amiga Board). Leaks references to original base register variable name DT wherever it is used, if the variable gets renamed. e.g. movea.l Variable1-DT(A4), A0. This will be the first variable in a SECTION and will have automatically been renamed to DT. If you rename it at a later point to reflect the actual use of this variable, this is when the problem will occur. As it is not possible to add multiple labels for the same address in Resource, you need to fix it manually when compiling the resulting source code. (Source: copse on English Amiga Board). When "New Syntax" is turned off, a few instructions are still disassembled with "New Syntax" regardless. e.g. "movem.l (label,pc), …" or "frestore (label,pc)". When "New Syntax" is turned off, some instructions are not disassembled correctly. e.g. unpk, movec, bfextu. |
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 |
|
|