SunQuest
           Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 31st, 2006, 02:28 PM
ashkash ashkash is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 3 ashkash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 2 sec
Reputation Power: 0
Assembly Language Question

I am writing a program in assembly language and need help. I am given two 16 bit integers that represent a candidate and a reference respectively. The object is to see if the candidate and the reference are equal. The 16 bit integer represents eight colors around a square and the graphical representation is:

0 1 2
7 X 3
6 5 4

The X in the center is just there to show a blank space.
The possible colors that can be in the eight positions are red, yellow, green, blue and their values are 0,1,2,3 respectivly. The task is to see if the candidate square is equal to the reference square and it can be either a direct match or the candidate square can be rotated, flipped, or both.

I am able to check for a direct match without a problem, but I have no idea how to check for a match if the candidate has been rotated, flipped, or both. I know some operations need to be done on the 16 bit integer value to check for these conditions and then after this the reference and candidate can be compared to see if they are equal, but I have no idea how to approach this.

Any help would be appreciated. thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Assembly Language Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway