TXG/MNX Posted April 24 Share Posted April 24 Hi, I am just started with mad pascal I wanted to build a gr.0 screen and print that to the screen. So I did use the editor and create source code for mad pascal and added it to my code but I only get numbers. How can I reproduces the picture from the created array ? mygame.pas screen01.gr0 Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted April 24 Share Posted April 24 (edited) this will do what you need locations 88 and 89 hold the screen start address Simplify the code:- sc=peek(88)+peek(89)*256 for i:=0 to 959 do begin poke(sc+i,screendata[i]); end; Edited April 24 by TGB1718 Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted April 24 Share Posted April 24 Maybe uses something like the 'move' command given in this example: #NotAFanOfPeekPokeOutsideOfBasic (but I get it) Quote Link to comment Share on other sites More sharing options...
TXG/MNX Posted April 24 Author Share Posted April 24 2 hours ago, TGB1718 said: this will do what you need locations 88 and 89 hold the screen start address Simplify the code:- sc=peek(88)+peek(89)*256 for i:=0 to 959 do begin poke(sc+i,screendata[i]); end; Ofcourse I was just thinking about this in the car 🙂 I assumed it was atascii been so long since I coded .... thanx 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.