toarnold Posted June 12, 2015 Share Posted June 12, 2015 Hi friends, I get into difficulties displaying a scaled bitmap. So I take a look into the WORKSHOP/SCALE sample. I got it compiled, but the result produces a black screen. Can anybody provide me a working make file (with current tools for win32), or another working sample? I tried smac/vlink. This combination works for the MOVE sample. I checked the linking address for the scaled bitmap but it seems to be correct (dphrase aligend) Thx, toarnold Quote Link to comment Share on other sites More sharing options...
toarnold Posted June 12, 2015 Author Share Posted June 12, 2015 Update: I tried rmac/rln. This did the trick. Now I try to find the differences. Thx, toarnold Quote Link to comment Share on other sites More sharing options...
JagChris Posted June 13, 2015 Share Posted June 13, 2015 (edited) vlink requires '-minalign 4' in the options line. Without it one of the things that can happen is getting just a black blank screen. Not saying that was your problem but it may have been. Edited June 13, 2015 by JagChris Quote Link to comment Share on other sites More sharing options...
toarnold Posted June 15, 2015 Author Share Posted June 15, 2015 Hi JagChris, this pointed me in the right direction. I wrote scaled bitmaps has to be dphrase aligned, but this is wrong, they has to be qphrase aligend (32byte boundary). Now this sample works with vlink, too. THX toarnold 2 Quote Link to comment Share on other sites More sharing options...
JagChris Posted November 24, 2015 Share Posted November 24, 2015 (edited) New information from Frank Wille. The minimum instruction alignment form68k and Jaguar-RISC is both 2. And the 68000 doesn't benefit from 32-bitaligned data, like the 68020.When using a linker script, you should better insert ALIGN directives therewhere you need them, instead of using a global -minalign option. One man has run into debug problems with setting the minalign -4 option and the above is Frank's solution for it. Edited November 24, 2015 by JagChris 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.