Jump to content
IGNORED

HELP! HIP Questions


TXG/MNX

Recommended Posts

Hi,

 

I am looking for some easy code how to use HIP in my program.

I want to use the HIP mode in ANTIC SMALL screen mode and just half a screen.

 

What do I need for HIP.

 

DLI, VBI? And how does a display-list look?

 

Can I fade a HIP picture out to the same color as the background color?

 

TXG/MNX

Link to comment
Share on other sites

try my site:

 

http://www.s-direktnet.de/homepages/k_nadj/main.html

 

there is my HIP-FAQ done 1996...

 

check out as well our numen demo: http://numen.scene.pl for some HIP effects...

 

and search the net for bmp2hip converters... so you can easily get pics...

 

and of course... check as well TIP (colored hip - Taquart Interlace Picture or RIP)... you find docs & converters on the net as well... mostly and unfortunatly in polish...

 

http://www.s-direktnet.de/homepages/k_nadj/tip.html

 

the color editor in JAVA was somewhere here in the programming forums... (you can open the editor via internet explorer)

 

hve

Link to comment
Share on other sites

try my site:

 

http://www.s-direktnet.de/homepages/k_nadj/main.html

 

there is my HIP-FAQ done 1996...

 

check out as well our numen demo: http://numen.scene.pl for some HIP effects...

 

and search the net for bmp2hip converters... so you can easily get pics...

 

and of course... check as well TIP (colored hip - Taquart Interlace Picture or RIP)... you find docs & converters on the net as well... mostly and unfortunatly in polish...

 

http://www.s-direktnet.de/homepages/k_nadj/tip.html

 

the color editor in JAVA was somewhere here in the programming forums... (you can open the editor via internet explorer)

 

hve

Link to comment
Share on other sites

Hi,

 

i know how to convert pictures done it. But how does a special HIP display list look like?

 

.byte 112,112,112, ??????, 65

 

and when using dli's how do they look. There was a file hip.obj but that wasn't very clear to me.

 

dli

pha

???

pla

rti

 

is there a vbi being used?

 

Can I use small screen 32 bytes with hip?

Link to comment
Share on other sites

:roll: it's all written in the docs... :)

 

you have to use DLIs in combination with VBL... because you

are interlacing... like your TV set...

 

basic is that you interlace between a gr.9 & gr.10 or gr.11 screen... (depending on HIP or TIP)

 

and these modes are just accessable via GTIA... so

 

1st VBL

 

format line x (GTIA mode)

 

display-list1

 

line0 (9) - dli

line1 (10)

line2 (9) - dli

line3 (10)

line4 (9) - dli

...

line198(9) - dli

line199(10) - dli

 

display-list2

 

line0 (10) - dli

line1 (9)

line2 (10) - dli

line3 (9)

line4 (10) - dli

...

line198(10) - dli

line199(9) -

 

i hope you see the difference... you have to interlace in y-direction.

 

the VBL is switching between the 2 displaylists and sets the DLIs correctly...

 

you need 2 screens, one for gr.9 and one for gr.10....

 

the DLI is needed because of switching the GTIA modes per scanline and setting correctly the color registers (as gr.10 has another "logic" as gr.9...)

 

the displaylist is looking like f.e.:

 

dlist1:

$cf, screen9(0)

$4f, screen10(1)

$cf, screen9(2)

...

$41 dlist1 (but unneccessary...)

 

dlist2:

$cf, screen10(0)

$4f, screen9(1)

$cf, screen10(2)

...

$41 dlist2

 

VBL

 

lda dlistv+1 (560)

eor #3

sta dlistv+1

lda dliv+1

eor #1

sta dliv+1

 

jmp $e462

 

so best to put the 2 dlists to $3000 and $3300 as they will be longer than 256 bytes... (approx. 3 bytes per scanline a 200 lines...)

 

as you are flexible with the atari hardware you can of course use 32 bytes per scanline as well... or 48 (like i have done in ultra2 preview demo...) but i guess that then you have to use or adapt existing converters as they mostly are based on 40 bytes per scanline...

 

and for the DLIs the same... put them on $3400 and $3500...

 

DLI1

 

pha

lda #$40 ; GTIA mode 9 and 40 bytes per scanline

sta wsync

sta PRIOR

lda #$80 ; GTIA mode 10 and 40 bytes per scanline (i am not sure here... can't remember...look into the docs...)

sta wsync

sta PRIOR

pla

rti

 

and now vice verser

 

DLI2

 

pha

lda #$80 ; GTIA mode 10 and 40 bytes per scanline

sta wsync

sta PRIOR

lda #$40 ; GTIA mode 9 and 40 bytes per scanline (i am not sure here... can't remember...look into the docs...)

sta wsync

sta PRIOR

pla

rti

 

 

that's the basics... of course you have to set the colors right... depending on which HIP method you use...and this has to be integrated into VBL and DLI code as well...

 

hve

Link to comment
Share on other sites

:

 

 

 

DLI2

 

pha

lda #$80 ; GTIA mode 10 and 40 bytes per scanline

sta wsync

sta PRIOR

lda #$40 ; GTIA mode 9 and 40 bytes per scanline (i am not sure here... can't remember...look into the docs...)

sta wsync

sta PRIOR

pla

rti

 

...

 

hve

 

This was my suggestion in the other thread. You putted two WSYNC in one DLI. Instead you can, with setting only one WSYNC, change other necessary registers, until the next scanline begins.

 

 

How many CPU cycles were lost due to set more than one WSYNC in a

DLI?

 

Hope, my suggestion is better understood now ;)

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...