$80:B123
ROM address data | |
---|---|
Length | 0x6C |
Type | Code |
Name | findTarget |
Description | Finds the closest sprite for a monster to target |
Arguments/Return value | X = [int16] X position Y = [int16] Y position Returns A = [uint16] Distance to target Returns X = [pointer16] Target sprite Returns $7E:003E = [int16] X offset Return $7E:0040 = [int16] Y offset |
Return type | RTL |