funkheld Posted October 11, 2020 Share Posted October 11, 2020 Hi good afternoon. times I created a graphic screen at $2000. the program starts at $3000. ------------------------------ .segmentdef Program [segments="ProgramStart, Code, Data, ProgramEnd"] .segmentdef ProgramStart [start=$3000] ------------------------------ screen address $2000- $2003 described with values. greeting #pragma target(atarixl) #pragma emulator("65XEDebugger") #include <atari-xl.h> char* SCREEN = $2000; void main() { *SDMCTL = 0x21; *SDLST = DISPLAY_LIST; SCREEN[0]=255; SCREEN[1]=129; SCREEN[2]=255; SCREEN[3]=129; while (1) ; } char DISPLAY_LIST[] = {0x70 ,0x70 ,0x70 ,0x4d ,0x00,0x20, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x0d, 0x0d ,0x0d ,0x0d ,0x0d ,0x0d ,0x41, JVB, <DISPLAY_LIST, >DISPLAY_LIST }; Quote Link to comment Share on other sites More sharing options...
ilmenit Posted October 12, 2020 Share Posted October 12, 2020 Hi. The best if DISPLAY_LIST could be in a "aligned segment", because the array cannot cross 1KB boundary (hardware restriction). Otherwise with increasing size of the code the program will stop to display the GFX screen properly. Quote Link to comment Share on other sites More sharing options...
fenrock Posted October 12, 2020 Share Posted October 12, 2020 The KickC docs linked here have a section on aligning arrays: char align(0x100) sine[0x100]; 1 Quote Link to comment Share on other sites More sharing options...
shanti77 Posted October 12, 2020 Share Posted October 12, 2020 You have two JVB commands 0x41=JVB 1 Quote Link to comment Share on other sites More sharing options...
funkheld Posted October 13, 2020 Author Share Posted October 13, 2020 hello thanks for the help. greeting 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.