Compare_Score ($F8C7)

This routine will compare two BCD score strings, to determine which one is higher. The two strings are pointed to by the U and X registers. Depending upon how the scores compare, one of the following values will be returned in the A-register:

1) The scores are the same: a = 0
2) X score > U score: a = 1
3) U score > X score: a = 2

ENTRY:

X-reg points to first score string (terminated with $80)

U-reg points to second score string

 

EXIT:

A-reg returns result of the compare

B-reg trashed

Source