Cambouis de l'Atari Posted May 18, 2016 Share Posted May 18, 2016 Hello ! I converted a picture using ToHgr tool and I would like to display it on my IIe in basic. I made a diskette in CiderPress and put my file as binary at $2000. Then I tried this program : 10 PRINT CHR$(4);"PR#3":PRINT 20 HGR 30 PRINT CHR$(4);"BLOAD GAMOTETE.BIN" And of course it did not worked ! Can you help me ? Or simplier, maybe could a graphic tool directly open my file ? I tried with Blazing paddle, with no luck... Here is how the picture should look like : And I attached my file to this post. Thank you for reading gamotete16.bin Quote Link to comment Share on other sites More sharing options...
Osgeld Posted May 18, 2016 Share Posted May 18, 2016 (edited) Try adding ,A$4000 after the filename It might be,A$2000 I don't recall off the top of my head Edited May 18, 2016 by Osgeld 2 Quote Link to comment Share on other sites More sharing options...
whiteplanet Posted May 18, 2016 Share Posted May 18, 2016 There are a number of errors in what you are doing. 1. The ToHGR tool - For every input file, tohgr will produce two output files: One is another file that approximates the appearance of the original image in Apple II hires or double hires graphics. The other output file is an Apple II file, which can be viewed on an Apple II computer. All you need is the 2nd file for your Apple II! 2. The Program is incorrect you that you are typing in Applesoft. There is no need for line 10 as you don't need to turn on the 80 column card. 10 HGR 20 PRINT CHR$(4); "BLOAD GAMEOTETE,A$2000,L$1FFF" 2 Quote Link to comment Share on other sites More sharing options...
Cambouis de l'Atari Posted May 19, 2016 Author Share Posted May 19, 2016 (edited) Osgelt, from my readings, $2000 for page 1 (HGR), and $4000 for page 2 (HGR2). WhitePlanet, thanks for your answer. Yes I know about the 2 files, the preview is the picture shown, and the other file (.hgr) is attached (I renamed it). Unfortunately, I'm getting a syntax error on line 20. Maybe L$ is not allowed for BLOAD, just for BSAVE ? Without L$, the Apple is bloading, but nothing is displayed. A picture saved using blazing paddles is displayed tough ! Maybe there is something wrong with my hgr file ? I'll try to regenerate it tomorrow, we'll see... When I'm creating my diskette into ciderpress, I changed the file type to binary at $2000, is it correct ? (I read that the address is stored too and occupies the first two bytes). Edited May 19, 2016 by Cambouis de l'Atari Quote Link to comment Share on other sites More sharing options...
whiteplanet Posted May 19, 2016 Share Posted May 19, 2016 You would get the syntax error in Line 20 because you have turned on the 80 column card and then trying to enter the graphics mode so there is conflict. Just enter the A$ as that is all is needed. You're right. The L$ is only needed for BSAVE. My mistake. Quote Link to comment Share on other sites More sharing options...
Osgeld Posted May 19, 2016 Share Posted May 19, 2016 (edited) yea you dont need to know the length of a file being loaded into ram when I transfer over images (using a different program to make them) I change the type to bin in ciderpress but never assign it an address Edited May 19, 2016 by Osgeld Quote Link to comment Share on other sites More sharing options...
Cambouis de l'Atari Posted May 20, 2016 Author Share Posted May 20, 2016 (edited) It works !! I hadn't turned 80col on, actually the problem was from the start from the file. Changing it's type in ciderpress wasn't a good idea. Instead I modified the file extension (.bin instead of .hgr) and ticked the "guess the type from the extension" box in the add files dialog. I learned new things, that's great Edited May 20, 2016 by Cambouis de l'Atari 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.