![]() |
![]() |
#21 |
Registered User
Join Date: Aug 2020
Location: Huddinge
Posts: 26
|
If you make sure your dx and dy are between -128 and 127, and have lots of memory you could do something like:
Code:
; d0 = dy ; d1 = dx ; a0 = pointer to middle of table with high byte ; a1 = pointer to middle of table with low byte ; result in d2 lsl.w #8,d0 move.b d1,d0 move.b (a0,d0.w),d2 lsl.w #8,d2 move.b (a1,d0.w),d2 |
![]() |
![]() |
#22 |
Registered User
Join Date: Apr 2023
Location: "Hamcastle"
Posts: 30
|
I do not know if it is of interest for you, but you could also try to eliminate the divu in your posted code by simply replacing the division with a multiplication of the reciprocal (catchword: lut).
Last edited by Rotschi; Today at 10:37. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Voices8" 8 Channel Soundtracker "DemoSongI" song - "This is the Amiga with 8 Voices" | DemosongIHunter | request.Music | 45 | 23 May 2022 20:07 |
Most "recent" and "modern" IDE to write in C/C++/assembler on the Amiga? | guybrush | Coders. General | 11 | 27 February 2022 22:26 |
[FOUND: PHANTASIE III!] 2D RPG game with map screen, "black background combat screen" | Artifex 28 | Looking for a game name ? | 1 | 22 May 2014 17:42 |
RTG "full-screen" vs. "full windowed" - advantages/disadvantages? | ral-clan | support.WinUAE | 2 | 19 April 2011 01:15 |
The 6502 assembler code in "The Terminator" (1984) | Shoonay | Nostalgia & memories | 2 | 15 May 2009 13:52 |
|
|