24 October 2017, 09:31 | #21 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Besides, most assemblers have options (CNOP f.e.) to take care of alignment issues which should be used instead of removing "useless" instructions. |
|
24 October 2017, 15:36 | #22 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
I know that the start of the resident structure itself won't be longword aligned, but the pointers in this structure, the inittable and the functiontable are better aligned. On the other side, the alignment is not so important, since you will never notice a few microseconds difference of access time during InitResident().
I'm a bit surprised that this missing return code leads to such a long discussion. And I can not imagine any Amiga user to be so stupid to execute a library directly from a shell, thus there really should be no idiots, I guess. |
24 October 2017, 16:01 | #23 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
You used alignment as "excuse" for removing the moveq instruction and now you say alignment isn't that important (which I completely agree with in this case!). You're contradicting yourself.
Also, it's not about Amiga users being stupid or not, it simply is bad coding style. In my opinion at least. |
24 October 2017, 16:08 | #24 | |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Quote:
If you set the protection flag "E" then executing a library with the return code -1 will fail as "Unknown Instruction" and the shell returns RC=10. My test.library does not produce any error messages and the RC might be a random value. @StingRay Ok, in your eyes it's bad coding style, but I left this instruction out by design. That's my style, basta. Last edited by PeterK; 24 October 2017 at 16:15. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Anyone up for an ASM coding competition? | DanScott | Coders. Asm / Hardware | 526 | 22 September 2018 21:38 |
asm coding compo | meynaf | Coders. Asm / Hardware | 66 | 01 July 2017 22:59 |
3rd tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 6 | 26 March 2013 15:57 |
First tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 46 | 18 March 2013 12:33 |
2nd tutorial on ASM- and HW-coding | Vikke | Coders. Asm / Hardware | 10 | 17 March 2013 11:49 |
|
|