Welcome, Guest. Please login or register.

Author Topic: do AGA machines support HAM5 mode?  (Read 2768 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by bbond007
do AGA machines support HAM5 mode?
« on: February 16, 2012, 06:50:33 AM »
Hello!

Do AGA amigas such as my 1200 support HAM5?

I have written a program in SAS c 4.68 utilizing HAM5 mode and to my surprise it works on my MINIMIG 1.1 and UAE but not my actual A1200...

I changed the program to use HAM6 and it worked on the A1200.

What gives? This is very discouraging.

Thanks.

Nate
 

Offline Thomas

Re: do AGA machines support HAM5 mode?
« Reply #1 on: February 16, 2012, 07:52:23 AM »
I never heard of something like HAM5. HAM utilizes either 6 bitplanes (OCS) or 8 bitplanes (AGA).

Offline psxphill

Re: do AGA machines support HAM5 mode?
« Reply #2 on: February 16, 2012, 07:58:27 AM »
Quote from: Thomas;680671
I never heard of something like HAM5. HAM utilizes either 6 bitplanes (OCS) or 8 bitplanes (AGA).

In the hardware reference manual it says
 
"If only five bit-planes are used, the data from the sixth plane is automatically supplied with the value as 0."
 
 

Offline Thomas

Re: do AGA machines support HAM5 mode?
« Reply #3 on: February 16, 2012, 12:24:06 PM »
Ok, but it does not make much sense because you can only modify the blue component but not red and green.

Offline wodan

  • Newbie
  • *
  • Join Date: Sep 2011
  • Posts: 8
    • Show only replies by wodan
Re: do AGA machines support HAM5 mode?
« Reply #4 on: February 16, 2012, 05:58:33 PM »
I assume the missing bitplane is in the colour information bits (index or modified value), otherwise it would indeed not be all that useful :)
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: do AGA machines support HAM5 mode?
« Reply #5 on: February 16, 2012, 06:48:45 PM »
No, as far as I can tell from the documentation the missing bitplane(s) are always at the high end - you can't selectively disable them, only enable bitplanes 0-x.
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by bbond007
Re: do AGA machines support HAM5 mode?
« Reply #6 on: February 16, 2012, 06:50:43 PM »
Quote from: wodan;680708
I assume the missing bitplane is in the colour information bits (index or modified value), otherwise it would indeed not be all that useful :)


Quote from: Thomas;680684
Ok, but it does not make much sense because you can only modify the blue component but not red and green.


I assume is just call OpenScreenTags() SA_DISPLAYID:HAM_KEY  with SA_DEPTH:5?

HAM5 does indeded work the way Thomas suggests and I do want to just modify the blue value with my HAM pixels, however it does not seem to work on my AGA 1200.

I thought AGA was 100% compatible with OCS? Seems odd they would have left out an entire mode... I must be doing something wrong...

thanks,

nate
 

Offline wodan

  • Newbie
  • *
  • Join Date: Sep 2011
  • Posts: 8
    • Show only replies by wodan
Re: do AGA machines support HAM5 mode?
« Reply #7 on: February 16, 2012, 07:02:49 PM »
not that odd, what's the use if you can only change blue?? seems more like a hardware bug that was relabled as a feature, then fixed in AGA.
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: do AGA machines support HAM5 mode?
« Reply #8 on: February 16, 2012, 07:17:28 PM »
Quote from: wodan;680714
not that odd, what's the use if you can only change blue?? seems more like a hardware bug that was relabled as a feature, then fixed in AGA.
Not a bug, just a weird artifact mode you get from playing around with the bitplane enable in a mode where the bitplanes have special meaning...
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by bbond007
Re: do AGA machines support HAM5 mode?
« Reply #9 on: February 16, 2012, 07:20:21 PM »
Quote from: wodan;680714
not that odd, what's the use if you can only change blue?? seems more like a hardware bug that was relabled as a feature, then fixed in AGA.


I do have a use for it. I bet Mrs Beanbag can guess what I'm trying to do...
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16882
  • Country: gb
  • Thanked: 6 times
    • Show only replies by Karlos
Re: do AGA machines support HAM5 mode?
« Reply #10 on: February 16, 2012, 07:50:51 PM »
Hmm. Some sort of scanline filling cheat?
int p; // A
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: do AGA machines support HAM5 mode?
« Reply #11 on: February 16, 2012, 07:55:47 PM »
@wodan
it's faster than 6 planes and allows 256 (blue-ish) colors, perfect for underwater simulators :-P
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline bbond007Topic starter

  • Hero Member
  • *****
  • Join Date: Mar 2009
  • Posts: 1517
    • Show only replies by bbond007
Re: do AGA machines support HAM5 mode?
« Reply #12 on: February 16, 2012, 08:10:12 PM »
Quote from: Crumb;680726
@wodan
it's faster than 6 planes and allows 256 (blue-ish) colors, perfect for underwater simulators :-P


1 bit for HAM mode 4 for the blue level, so 2^4 = 16. AGA would be 64.

Also, You are only altering the blue color component, so the resulting color might not even be blue at all, maybe it has no blue :)

I'll do the underwater simulator next...