![]() |
![]() |
#21 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
Thanks I’ll test it. Does is also work if the base library pointer is known in the source file prior to the OS call?
|
![]() |
![]() |
#22 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
?? I don't understand, sorry
![]() |
![]() |
![]() |
#23 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
If I have move.l execbase, a6 then later jsr -30(a6) same with other base lib etc will it work,
For cheapres.py is the usage is python cheapres.py sourcefile? Any dependencies? Last edited by kamelito; 28 March 2020 at 23:09. |
![]() |
![]() |
#24 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
it will if the base lib is set before -30(a6) is called. I thought I protected the scan when RTS is encountered but it doesn't seem to be the case (working on the script right now so it might be done tonight)
usage is: cheapres.py -i input_file.asm -o output_file.asm. Omitting the output overwrites the input (which can be regenerated at will probably) Dependencies are kept to their minimum (no other python modules than already existing builtins, maybe it would even run on amiga in python 2.4 with minimum adaptations). Maybe time not to divert this thread any further. You can PM me if you have issues, or open a separate thread. Last edited by jotd; 29 March 2020 at 12:50. |
![]() |
![]() |
#25 |
Joy Division
Join Date: Nov 2006
Location: East Yorkshire
Age: 60
Posts: 243
|
Many thanks, Jotd - very useful.
BTW I think this is relevant to this thread as it is enhancing IRA output. #my2cents |
![]() |
![]() |
#26 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
thanks
![]() |
![]() |
![]() |
#27 | ||||||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,574
|
Quote:
Quote:
Quote:
Quote:
![]() Quote:
Quote:
![]() |
||||||
![]() |
![]() |
#28 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
@PHX
>Maybe you have an editor or viewer which is not set to the standard tab-width of 8? Right thanks notepad++ default is 4 with 8 it is perfect! >Not yet. But I already have that on my ToDo-list for future additions. I mentioned the new directives DATAB, DATAW and DATAL for this purpose. Also on this list: a directive to insert user comments, an option to output mnemonics in lower-case. >No. A global option would be easy, but I guess you would like to see it as a directive for certain regions? I think your directives DATAB DATAW DATAL are the way to go but you could add a char like DATAW_B for word as binary or DATAB_D for decimal, DATAW_H for hex something like that. (Not sure if ascii is needed) >Like library LVOs, this should be done by a post-processor. Jotd has currently >the best options for it! ![]() I’ve seen he made updates, I’ll test tomorrow. >Labels starting with a dot are local labels in many 68k assemblers. So this >would be a bad choice. Not my choice it is IRA who did this I guess it choosed this because of symbols present in the exe. @jotd > dated them several times since yesterday on my github page. Now cheapres.py is able to insert named offsets from $DFF000 base too as someone suggested. Thanks! Does your repo contains minimal info about how to use your tools? Last edited by kamelito; 29 March 2020 at 23:13. |
![]() |
![]() |
#29 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,130
|
|
![]() |
![]() |
#30 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
tried this basereg stuff, can't seem to make it work
defender of the crown: Code:
MOVEA.L (A7)+,A1 ;0FE4A: 225F SUBA #$000A,A1 ;0FE4C: 92FC000A MOVE.L (A1),D1 ;0FE50: 2211 ADD.L D1,D1 ;0FE52: D281 ADD.L D1,D1 ;0FE54: D281 MOVEA.L D1,A4 ;0FE56: 2841 ADDA.L #$00008002,A4 ;0FE58: D9FC00008002 ... SECTION S_1,DATA,CHIP DC.W $4EF9 ;11618 ... LAB_0C50: DS.L 132 ;13B30 END Code:
BASEADR $11618 BASEOFF $8002 |
![]() |
![]() |
#31 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
@jotd
I guess it’s 32766, have you seen my PMs? |
![]() |
![]() |
#32 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,574
|
Quote:
Also a base offset >$8000 makes no sense. ![]() |
|
![]() |
![]() |
#33 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
BTW I found a very annoying bug in last version of IRA (2.09). I tried to disassemble a binary file (start $80000) like this:
Code:
>ira -a -offset=$80000 -binary heimsp.bin IRA V2.09 (Apr 1 2020) (c)1993-1995 Tim Ruehsen (SiliconSurfer/PHANTASM) (c)2009-2015 Frank Wille (c)2014-2017 Nicolas Bastien Atari's executable files not yet supported. And second IRA HAS DELETED THE FILE! I tried several times, same thing. Version 2.00 works well on that file. I have zoned it if you want to check. |
![]() |
![]() |
#34 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
@jotd how cheapres recognize the different libraries bases? Do you look for specific text like ExecBase, IntuitionBase is their a list? Or is it done differently?
|
![]() |
![]() |
#35 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
yeah, good question. ExecBase, IntuitionBase, GraphicsBase... basically name of the lib with first letter uppercased. Ex: lowlevel.library => LowlevelBase.
You can manually set them if the program uses a proxy routine to open the libraries (often happens in C programs) |
![]() |
![]() |
#36 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
@jotd
Thanks is PotgoBase handled? |
![]() |
![]() |
#37 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
devices aren't supported ATM.
|
![]() |
![]() |
#38 | |||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,574
|
Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
#39 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,447
|
another strange thing when processing Oscar (ECS) executable.
shitload of messages like this: Watch out: prgcounter(0000d0a0) > nextreloc(000088bc) then P1 Missed bad reloc addr $000088bc! Output is okay, though. |
![]() |
![]() |
#40 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,574
|
I cannot remember the details, but probably there was a relocation in the executable's reloc-hunk which the reassembler now skipped in the output, because the code was not detected correctly?
Check offset $88bc. Does it look correct? Is there a label in this location? |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ira for Windows | jotd | Coders. General | 63 | 12 December 2023 10:53 |
New tutorial on sprites | Yragael | Coders. Tutorials | 8 | 04 September 2023 21:00 |
Debugging messages in serial (small tutorial, mainly for cross-dev) | alkis | Coders. Asm / Hardware | 7 | 22 February 2016 14:16 |
68020 to 68000 code convertion using Ira and PhxAss | gulliver | Coders. Asm / Hardware | 18 | 12 April 2014 01:09 |
Looking for IRA v1.07 or newer :-) | voxel | request.Apps | 7 | 30 July 2008 01:39 |
|
|