English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 19 January 2013, 10:50   #1
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 865
Blitz MOD compare proggy not working

Hi guys,

I'm obviously doing something very silly here, this program should just show the difference between two MOD files. I've only changed the first pattern pointer otherwise the MOD should be identical. Instead it's reporting every byte as being different.

It even does it if I use the same file for both modules!

Code:
; this is supposed to compare 2 MOD files...

LoadModule 0,"jh:sfx/mod.jet-music"
LoadModule 1,"jh:sfx/mod.jet-music2"

ad.l=Addr Module(0)
ad2.l=Addr Module(1)

For a=0 To 500

  p1.b=Peek.b(ad+a)
  p2.b=Peek.b(ad2+a)

  If p1<>p2 Then NPrint a," - ",p1," - ",p2

Next

MouseWait

Free Module 0
Free Module 1

End
Coagulus is offline  
Old 19 January 2013, 11:05   #2
Coagulus
Gets there in the end...
 
Coagulus's Avatar
 
Join Date: Sep 2005
Location: Wales
Posts: 865
Argh, it was silly,

Code:
ad.l=Peek.l(Addr Module(0))
ad2.l=Peek.l(Addr Module(1))
that did it!
Coagulus 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
KyroFlux - How might it compare to the CatWeasel? Narf the Mouse project.SPS (was CAPS) 10 28 May 2011 20:19
ADF/ADZ compare tool? the wolf request.Apps 3 17 October 2010 18:34
What version of DX did the AGA compare to? methodman Retrogaming General Discussion 8 22 May 2010 09:02
Name a music player proggy Mike UK Looking for a game name ? 2 12 April 2007 22:41

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

Top

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