English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Contest

 
 
Thread Tools
Old 07 July 2019, 20:09   #1161
ross
Per aspera ad astra

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 49
Posts: 1,774
Quote:
Originally Posted by DamienD View Post
Yeah we know; *cough* Shadow Warriors fixed music 4th stage / trained version
It's somewhere in the cellar
ross is offline  
Old 07 July 2019, 21:21   #1162
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 51
Posts: 1,133
Quote:
Originally Posted by mcgeezer View Post
Yes because if d0 is greater than $FF then the move.b (a0,d0),d1 will over run past the look up table.

I fixed it by simply setting d0=0, I didn't try it but I guess I could have fixed it by doing move.b (a0,d0.b),d1.

Geezer
You need only one time to clear high byte in D0, move.b modified only byte, not word or longword. If no dependencies between A4 and BYTE_REVERSE_TAB, you can use fastest version too.

Code:
; Input d1=longword
; Output d1=longword reversed
REVERSE_LONGWORD:
	move.w	d0,-(a7)
	clr.w	d0
	move.b	d1,d0
	move.b  BYTE_REVERSE_TAB(PC,d0.w),d1
	ror.w	#8,d1
	move.b	d1,d0
	move.b	BYTE_REVERSE_TAB(PC,d0.w),d1
        swap    d1
	move.b	d1,d0
	move.b	BYTE_REVERSE_TAB(PC,d0.w),d1
	ror.w   #8,d1
	move.b	d1,d0
	move.b  BYTE_REVERSE_TAB(PC,d0.w),d1
	move.w	(a7)+,d0
	rts
BYTE_REVERSE_TAB
        ds.b 256
Don_Adan is offline  
Old 07 July 2019, 21:58   #1163
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,195
Quote:
Originally Posted by Don_Adan View Post
You need only one time to clear high byte in D0, move.b modified only byte, not word or longword. If no dependencies between A4 and BYTE_REVERSE_TAB, you can use fastest version too.

Code:
; Input d1=longword
; Output d1=longword reversed
REVERSE_LONGWORD:
	move.w	d0,-(a7)
	clr.w	d0
	move.b	d1,d0
	move.b  BYTE_REVERSE_TAB(PC,d0.w),d1
	ror.w	#8,d1
	move.b	d1,d0
	move.b	BYTE_REVERSE_TAB(PC,d0.w),d1
        swap    d1
	move.b	d1,d0
	move.b	BYTE_REVERSE_TAB(PC,d0.w),d1
	ror.w   #8,d1
	move.b	d1,d0
	move.b  BYTE_REVERSE_TAB(PC,d0.w),d1
	move.w	(a7)+,d0
	rts
BYTE_REVERSE_TAB
        ds.b 256
Excellent Don_Adan... have plugged this in and it works great! Much smaller and tidier than my code.
mcgeezer is offline  
Old 13 July 2019, 23:42   #1164
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,195
I've started work on the hi-score table here.... pretty much part 1 of 2.

It isn't a game without the hi-score... however the Amiga version will only have 5 entries, the arcade had 50... there' literally no point in me coding 50 entries.

[ Show youtube player ]

Geezer
mcgeezer is offline  
Old 14 July 2019, 00:11   #1165
vulture
Registered User
 
Join Date: Oct 2007
Location: Athens , Greece
Posts: 919
Whaaaaa? Not even 10?
I'm kidding!
vulture is online now  
Old 14 July 2019, 14:44   #1166
seuden
uber cool demi god

seuden's Avatar
 
Join Date: Jun 2006
Location: Kent/England
Posts: 1,977
Cannot wait for this. Looking awesome as always. Keep up the great work mcgeezer.
seuden is offline  
Old Yesterday, 11:11   #1167
str0m
Registered User

 
Join Date: Oct 2016
Location: UK
Posts: 18
mcgeezer - enjoy NERG? Did you break the Rygar machine?
Attached Thumbnails
Click image for larger version

Name:	rygar.JPG
Views:	71
Size:	83.7 KB
ID:	63756  
str0m is offline  
Old Yesterday, 13:47   #1168
mcgeezer
Registered User

 
Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,195
Quote:
Originally Posted by str0m View Post
mcgeezer - enjoy NERG? Did you break the Rygar machine?
Disgraceful how they can let a machine go like that.
mcgeezer is offline  
Old Yesterday, 13:52   #1169
dlfrsilver
CaptainM68K-SPS France
dlfrsilver's Avatar
 
Join Date: Dec 2004
Location: Melun nearby Paris/France
Age: 42
Posts: 8,059
Send a message via MSN to dlfrsilver
True, it should be shining and restored.
dlfrsilver is offline  
Old Yesterday, 15:23   #1170
str0m
Registered User

 
Join Date: Oct 2016
Location: UK
Posts: 18
heh most were in good condition to be fair, perhaps a recent purchase and awaiting proper restoration (and now fixing!)
str0m 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
Entry: Rygar AGA Edition mcgeezer Coders. Entries 75 28 February 2019 20:41
On the Ball - World Cup Edition AGA djcasey request.Old Rare Games 4 25 January 2013 12:39
On The Ball League Edition AGA , Player Manager 2 StarEye Games images which need to be WHDified 11 22 January 2010 18:21
The Vague #1 AGA-RTG edition is released ! kas1e Amiga scene 12 30 October 2007 00:27
On The Ball: World Cup Edition AGA CodyJarrett request.Old Rare Games 11 27 May 2003 06:14

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 21:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.13230 seconds with 16 queries