View Single Post
Old 10 November 2019, 12:30   #13
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,303
Found the issue in whdload.

Bert changed adda.l -> adda.w somewhere probably to avoid access faults when D1 was too high (probably collision related)

PL_W $1ce6,$d0c1 ;adda.l -> adda.w


BUT at some point D1 is > $8000 and adda.w uses D1 as SIGNED. In that case the proper fix is still use adda.l but mask D1 prior to adding.

This slave needs dusting anyway. With 2 button support & joypad support. There are 4 versions but they seem very similar.
jotd is offline  
 
Page generated in 0.04201 seconds with 11 queries