English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old Today, 07:47   #21
morbid
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
morbid is offline  
Old Today, 10:21   #22
Rotschi
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.
Rotschi is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:17.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06657 seconds with 15 queries