English Amiga Board


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

 
 
Thread Tools
Old 04 October 2018, 22:58   #21
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 109
Problem solved.
- Create a table with all data length to read
- Modify Trackloader to get the good information in this table (with D0 that indicated now the position in this table.)

Tested, work good for All my trackloader call

Code:
ASL.W #3,D0		; D0=D0*8
LEA	$2C4,A2		; A2=$2C4
ADD.L	D0,A2		; Move good position in table
MOVE.W	(A2)+,D1	; Get 'Start track'
MOVE.L	(A2),D0		; Get 'Data Length to read'
Giants is offline  
Old 05 October 2018, 09:14   #22
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Make sure d0 doesn't contain any random data in the high word as otherwise your add.l d0,a2 instruction won't lead to the desired result. Also: lea $2c4.w,a2 (you need small code, you should use the smallest possible instructions).
StingRay is offline  
Old 05 October 2018, 10:43   #23
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
Quote:
Originally Posted by StingRay View Post
Make sure d0 doesn't contain any random data in the high word as otherwise your add.l d0,a2 instruction won't lead to the desired result.
Or use a mulu.w #6,d0 (that set all 32 bits) and pack your table (if eventually the extra padded .w is not used).
ross 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
REQ:ASM Trackloader spud Coders. Tutorials 9 16 August 2018 11:11
Juggler movie demo v2.0 BYTE by BYTE! TjLaZer support.Demos 3 30 November 2017 12:06
Google Search 404 error DH project.EAB 6 07 November 2017 15:52
Wonderful world trackloader demo dottyflowers request.Demos 1 23 May 2016 00:41
HOL -404 error- amigamemo HOL suggestions and feedback 2 21 March 2007 01:19

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 11:11.

Top

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