30 January 2021, 17:42 | #1 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,359
|
how to make this code 68000 compliant?
Code:
tst.w d1 bne.b .AAA swap d2 move.w d2,d1 clr.w d2 divu.l d0,d1:d2 <==== bvs.b .AAA move.l d2,d0 the "divu.l" instruction is not 68000 compatible (and AFAIR not 68060 compatible either) can someone help to rewrite this code in a 68000 compatible way? I included the full code around for context. |
30 January 2021, 17:44 | #2 | |
<optimized out>
Join Date: Sep 2020
Location: <optimized out>
Posts: 321
|
Quote:
http://eab.abime.net/showthread.php?...ght=AlgorithmD I'm using that code with the 2 020 specific lines removed. |
|
30 January 2021, 18:25 | #3 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,359
|
ah I saw this thread a few weeks/days ago. thanks.
It may be worth testing against CPU before doing this. on a 68020 the divu.l is probably much faster. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
68000 code optimisations | pmc | Coders. Asm / Hardware | 248 | 17 September 2023 13:20 |
68000 Alien Vs Predator Jaguar Source code | redblade | Coders. Asm / Hardware | 31 | 14 July 2022 20:18 |
I am trying to make my first GFX assembler code | litwr | Coders. Tutorials | 111 | 14 December 2018 21:10 |
68020 to 68000 code convertion using Ira and PhxAss | gulliver | Coders. Asm / Hardware | 18 | 12 April 2014 01:09 |
68000 boot code | billt | Coders. General | 15 | 05 May 2012 20:13 |
|
|