28 December 2023, 23:00 | #101 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
|
30 December 2023, 22:14 | #102 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
|
15 January 2024, 20:17 | #103 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Quote:
Before: Code:
EXT_0007 EQU $400 EXT_0008 EQU $402 EXT_0009 EQU $8002 EXT_000a EQU $56660 EXT_000d EQU $5666A EXT_000e EQU $7FFFE Code:
EXT_400 EQU $400 EXT_402 EQU $402 EXT_8002 EQU $8002 EXT_56660 EQU $56660 EXT_5666A EQU $5666A EXT_7FFFE EQU $7FFFE |
|
17 January 2024, 16:08 | #104 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
|
18 January 2024, 10:03 | #105 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Quote:
Do you think it is worth mentioning this feature in -LABEL=<style> string in the Usage in FormatError(), or would it just be clutter? On a related note, is it possible to configure ira to use a single equate for all of the $400 values in the following code? It would be great if the equate could be renamed too. Code:
EXT_400 EQU $400 ... ; ------------------------------------------------------------------------------ ; Load Splash Screen Sequence to $400 ; ------------------------------------------------------------------------------ BSR.W SeekTrackZero ;70106: 610009a4 BSR.W MotorOn ;7010a: 61000a02 MOVEA.L #$00000400,A0 ;7010e: 207c00000400 MOVEQ #3,D0 ;70114: 7003 MOVE.W #$0006,D1 ;70116: 323c0006 LAB_7011A: BSR.W ReadTrack ;7011a: 61000916 ADDA.L #$00001800,A0 ;7011e: d1fc00001800 ADDI.L #$00000001,D0 ;70124: 068000000001 DBF D1,LAB_7011A ;7012a: 51c9ffee BSR.W MotorOff ;7012e: 61000a0a MOVEA.L #$00000400,A0 ;70132: 207c00000400 MOVEA.L #$00000400,A1 ;70138: 227c00000400 BSR.W Unpack ;7013e: 61000722 ; Execute loaded code at $400 [Splash screens sequence plays] JSR EXT_400.W ;70142: 4eb80400 Code:
SPLASH_ADDR EQU $400 ... ; ------------------------------------------------------------------------------ ; Load Splash Screen Sequence to $400 ; ------------------------------------------------------------------------------ BSR.W SeekTrackZero ;70106: 610009a4 BSR.W MotorOn ;7010a: 61000a02 MOVEA.L #SPLASH_ADDR,A0 ;7010e: 207c00000400 MOVEQ #3,D0 ;70114: 7003 MOVE.W #$0006,D1 ;70116: 323c0006 LAB_7011A: BSR.W ReadTrack ;7011a: 61000916 ADDA.L #$00001800,A0 ;7011e: d1fc00001800 ADDI.L #$00000001,D0 ;70124: 068000000001 DBF D1,LAB_7011A ;7012a: 51c9ffee BSR.W MotorOff ;7012e: 61000a0a MOVEA.L #SPLASH_ADDR,A0 ;70132: 207c00000400 MOVEA.L #SPLASH_ADDR,A1 ;70138: 227c00000400 BSR.W Unpack ;7013e: 61000722 ; Execute loaded code at $400 [Splash screens sequence plays] JSR SPLASH_ADDR.W ;70142: 4eb80400 |
|
18 January 2024, 17:33 | #106 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
Quote:
Quote:
|
||
18 January 2024, 17:46 | #107 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
|
20 March 2024, 09:15 | #108 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Hi. I'm a bit confused by the intent of the
ExtendFileNamefunction in init.c. It is used to generate the output filenames: targetName(.asm), configName(.cnf), as well as binaryNameand labelName. It looks like ExtendFileNameis designed to append a file extension, and also strip the volume/drive label and directories from a path. For example: DH0:games/game -> game.asm, game.cnf etc So it would seem that ira is designed to output the .asm/.cnf file in the current working directory by default, rather than next to the source file. I've been using ira on Windows, which often uses backslashes for path separators. ExtendFileNamedoes not account for this - it only searches for forward slashes. Fixing this has exposed the behaviour described above, which I don't think is very desirable. I think it would be better if ExtendFileNamedid not strip the preceding path from a filename, so for example: DH0:games/game -> DH0:games/game.asm, DH0:games/game.cnf etc and similarly for Windows C:\Games\Game -> C:\Games\Game.asm, C:\Games\Game.cnf What are your thoughts on this? Please could you let me know if I have misunderstood anything here? Thanks Last edited by hop; 20 March 2024 at 09:27. Reason: Correction |
10 April 2024, 16:09 | #109 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
Quote:
Fixed and updated the test-archive. Only the ExtendFileNamefunction in init.cwas modified. |
|
11 April 2024, 16:33 | #110 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Quote:
|
|
12 April 2024, 13:37 | #111 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
It's still the same URL we used previously in this thread:
http://sun.hasenbraten.de/~frank/TEST/ira_211beta.lha |
12 April 2024, 17:56 | #112 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Quote:
I've just been disassembling WB1.3 Calculator with ira as a test case, and I am not sure if I have encountered a bug or if this is user error. Can you please advise? Code:
LAB_67A: JMP LAB_67C+2(PC,D0.W) ;067a: 4efb0000 LAB_67E: UNLK A5 ;067e: 4e5d RTS ;0680: 4e75 |
|
12 April 2024, 18:30 | #113 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
I would guess this is a problem in your private ira compilation, as I saw exactly the same problem in your still secret project and sent you a screenshot. I don't see it with ira under NetBSD or AmigaOS.
|
12 April 2024, 20:05 | #114 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Ah. Sorry. I misunderstood. I'll investigate this. I have only made very minor changes to ira. I'll look into this (test vanilla ira and also on Linux) and let you know what I find. Many thanks.
|
13 April 2024, 20:02 | #115 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
Quote:
nmake -f Makefile.win32. It looks this problem may be related the -LABEL=1option. For Calculator with -LABEL=0the resultant disassembly is valid - the JMP dest is relative to a defined label: Code:
LAB_0052: JMP LAB_0052+2(PC,D0.W) ;067a: 4efb0000 LAB_0053: UNLK A5 ;067e: 4e5d -LABEL=1the resultant disassembly is invalid - the JMP dest is relative to an undefined label and the offset is effectively applied twice: Code:
LAB_67A: JMP LAB_67C+2(PC,D0.W) ;067a: 4efb0000 LAB_67E: UNLK A5 ;067e: 4e5d Code:
ira -a -label=1 -radix=0 -compat=bi -config Calculator Last edited by hop; 13 April 2024 at 20:12. Reason: clarity |
|
13 April 2024, 21:10 | #116 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
|
13 April 2024, 21:14 | #117 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
|
14 April 2024, 12:39 | #118 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
Fixed it. I have to use
LabelAdr2[r]instead of label.labelAdr[r]in CatLabelAdr(). Update with the beta archive from the previous link. |
14 April 2024, 13:02 | #119 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 260
|
|
15 April 2024, 11:06 | #120 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,551
|
Two hours later I fixed a similar bug with offsetting a symbol defined at section start (replacing
SECSTRT_n). Make sure ira_2.chas date 13:58 CEST. I reuploaded the archive. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
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 |
|
|