30 November 2019, 22:41 | #101 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
|
30 November 2019, 22:42 | #102 |
Semi-Retired
Join Date: Mar 2012
Location: Leiden / The Netherlands
Posts: 2,006
|
I am not an expert, but add.w d3,d3 doesn't replace lsr.w #1 d3 i think
|
30 November 2019, 22:49 | #103 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
You are right. I missed the "right" shift part. Works only for the left shift.
|
01 December 2019, 00:40 | #104 | |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,979
|
Quote:
|
|
01 December 2019, 12:51 | #105 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
@roondar:
Perhaps the problem lies in that i run only once the measured code, instead running it in a cycle. But to do that, i'll have to rewrite the C part, either to be encapsulated in a subroutine, or restore the variables it is trashing during work. (Intentionally, last part of the function, none of the variables are needed anymore.) However, this means an overhead, which will degrade the C part's performance, which is not fair, as it not's there without the measuring... @sparhawk: Thanks for the tip, i've put it into the algorithm. @Don_Adan: Even if we assume, that WinUAE's timings are not close enough to perfect (i'm running this in cycle-exact mode though, which is able to run demos which needs perfect timing), the difference would be appear between the results in emulator and on a real A500 and not between two results in the emulator. Unless WinUAE's timings are really "sliding" and the VM has "hiccups". Regardless of this, i would agree with you about testing it on real hardware, but for that i would need a handler which is able to mount the PC on the Amiga. I have no ethernet on my Amigas and i still did not had the time and mood to write my parallel port "network drive" handler. Of course, i could just use my old LPT filetransfer program between them, but that would be much more inconvenient. So, it's WinUAE now. I'll do the first option eventually... |
01 December 2019, 17:38 | #106 | |
Registered User
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,979
|
Quote:
|
|
01 December 2019, 18:24 | #107 |
Newbie Amiga programmer
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
|
Why would i do floppy swaping between them, when i have a simple transfer program for parallel port? Besides i do not have a PC with floppy anymore.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Optimizing HAM8 renderer. | Thorham | Coders. Asm / Hardware | 5 | 22 June 2017 18:29 |
NetSurf AGA optimizing | arti | Coders. Asm / Hardware | 199 | 10 November 2013 14:36 |
Layered tile engine optimizing. | Thorham | Coders. General | 0 | 30 September 2011 20:43 |
Benching and optimizing CF-IDE speed | Photon | support.Hardware | 12 | 15 July 2009 01:48 |
For people who like optimizing 680x0 code. | Thorham | Coders. General | 5 | 28 May 2008 11:48 |
|
|