home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!wupost!udel!sbcs.sunysb.edu!csws2.ic.sunysb.edu!clane
- From: clane@csws2.ic.sunysb.edu (Charles F Lane)
- Newsgroups: comp.lang.pascal
- Subject: Re: Raw Data
- Message-ID: <1992Nov6.163908.19859@sbcs.sunysb.edu>
- Date: 6 Nov 92 16:39:08 GMT
- Article-I.D.: sbcs.1992Nov6.163908.19859
- References: <05TqTB1w165w@tsoft.sf-bay.org>
- Sender: usenet@sbcs.sunysb.edu (Usenet poster)
- Organization: State University of New York at Stony Brook
- Lines: 32
- Nntp-Posting-Host: csws2.ic.sunysb.edu
-
- In article <05TqTB1w165w@tsoft.sf-bay.org> bbs.playboy@tsoft.sf-bay.org (Tony Yin) writes:
- >Hay...I have a problem. Maybe one of you guys can help me out.
- >I'm trying to make a "loader" which is just a simple program to
- >display a 320x200x256 picture. I have the raw data which is
- >64000 big and I want to put it into the code itself so there is
- >no need to load from disk. Is there a way to make it a constand
- >cuz I haven't yet figured it out.
- >
- >
- >--
- >Tony Yin (bbs.playboy@tsoft.sf-bay.org)
-
- You can use a pre-initialized array:
-
- program ShowImage;
-
- const
- ImageData = (2,45,2,63,212,2,0,121, .. 138,0,45);
- (**** This array^^^^^^ should have (here goes!) _64000_ byte values ****)
- (**** That's a LOT of typing! ****)
-
- begin
- Move(ImageData, mem[$a000:$0000], 64000);
- end.
-
- Hope it's all correct, I haven't used pre-init arrays and the Move()
- procedure in a while.
-
- --
- | "So who is this Al Gorithm guy they keep
- Charles F. Lane | mentioning in my Computer Science classes?"
- clane@Libws1.ic.sunysb.edu|
-