Cyprian Posted April 15, 2021 Share Posted April 15, 2021 (edited) For the last few days I was struggling with my code, which sometimes worked and sometimes it didn't Fortunately thanks to @dilinger Virtual Jaguar debugger I've just found an issue. It seems RMAC doesn't handle math correctly. Copyright (C) 199x Landon Dyer, 2011-2020 Reboot V2.0.23 Oct 24 2020 (Linux/OSX) Variables Test1 / Test2 should have the same value: nop LISTSIZE_FULL = 5 Base = $F00000 Test1 = Base + ((LISTSIZE_FULL*8)*4*4) Test2 = Base + (LISTSIZE_FULL*8)*4*4 move.l #Base,D0 move.l #Test1,D0 move.l #Test2,D0 nop nop But they don't: Edited April 15, 2021 by Cyprian Quote Link to comment Share on other sites More sharing options...
Zerosquare Posted April 16, 2021 Share Posted April 16, 2021 This is not a bug -- this behavior is documented: Workaround: always use explicit parentheses. Quote Link to comment Share on other sites More sharing options...
Cyprian Posted April 16, 2021 Author Share Posted April 16, 2021 It means that sometime it's worth to read the manual. BTW. I've found older version http://www.atarimania.com/documents/Madmac_Ref_Man_Jan-1990.pdf Where I can find the latest one? Quote Link to comment Share on other sites More sharing options...
ggn Posted April 16, 2021 Share Posted April 16, 2021 (edited) The official website perhaps? http://rmac.is-slick.com/manual/rmac.html#binary-operators (Also, thanks to @Zerosquare for the quick response - honestly I was 99% sure what to expect when I read the topic!) Edited April 16, 2021 by ggn 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.