Jump to content
IGNORED

How to display a HGR image on my //e ?


Recommended Posts

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 ! :-D

 

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 :

gamotete16 Hgr

And I attached my file to this post.
Thank you for reading :)

 

 

gamotete16.bin

Link to comment
Share on other sites

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"

  • Like 2
Link to comment
Share on other sites

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 by Cambouis de l'Atari
Link to comment
Share on other sites

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 by Osgeld
Link to comment
Share on other sites

It works !! :)

 

2016 05 20 15.19.35

 

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 by Cambouis de l'Atari
  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...