Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The world is coming to an end. Please log off.


devel / comp.emulators.apple2 / Re: Problem with double hires in AppleWin

SubjectAuthor
* Problem with double hires in AppleWinAlan Rat
`* Re: Problem with double hires in AppleWinMichael AppleWin Debugger Dev
 `* Re: Problem with double hires in AppleWinAlan Rat
  `* Re: Problem with double hires in AppleWinJoshua Bell
   `- Re: Problem with double hires in AppleWinAlan Rat

1
Problem with double hires in AppleWin

<7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=407&group=comp.emulators.apple2#407

 copy link   Newsgroups: comp.emulators.apple2
X-Received: by 2002:a05:622a:1a19:b0:3ef:6db3:ab28 with SMTP id f25-20020a05622a1a1900b003ef6db3ab28mr1411364qtb.7.1682664345530;
Thu, 27 Apr 2023 23:45:45 -0700 (PDT)
X-Received: by 2002:a25:690a:0:b0:b99:a54e:a5e with SMTP id
e10-20020a25690a000000b00b99a54e0a5emr2411299ybc.11.1682664345378; Thu, 27
Apr 2023 23:45:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.emulators.apple2
Date: Thu, 27 Apr 2023 23:45:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:545:8201:6290:7c19:f44d:738e:cd4d;
posting-account=6MWRcwoAAADEISWRnEk_KzrIFE0G3e_e
NNTP-Posting-Host: 2601:545:8201:6290:7c19:f44d:738e:cd4d
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>
Subject: Problem with double hires in AppleWin
From: alanr44...@yahoo.com (Alan Rat)
Injection-Date: Fri, 28 Apr 2023 06:45:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Alan Rat - Fri, 28 Apr 2023 06:45 UTC

I was just the other day running a "drawing program" I wrote in Applesoft with supporting machine-language double-hires drawing routines, for double hires graphics on an actual Apple IIe, and it worked fine. The function of the program includes switching between displaying an image on double hires page 1, and viewing a 'toolbox' screen of standard lores graphics page 1, and back again, and it works without any problem.

Then I ported the program and double hires routines in the exact form that was working on my Apple IIe, to AppleWin on my Windows-based PC, where I find that while a double hires image initially looks just as it is supposed to, when I run my 'drawing' program displaying a double hires page 1 image, and switch to the lores page display, and then switch back, the double hires display no longer looks right; the colors are distinctly degraded and wrong. Then when I switch the display back and forth AGAIN, the double hires has no color AT ALL — it's totally black and white. Any further switching back and forth continues to display double hires in monochrome, and indeed, anything else I put into double hires is displayed monochrome, and I know of no way to restore the normal color of double hires short of shutting down AppleWin and re-launching it.

Why does double hires that displays perfectly on an actual Apple IIe go wrong in AppleWin? What can I do to keep it displaying correctly?

And as a side note, is there some way to attach a jpeg image to a message post here? I have an AppleWIn screen capture image showing the three stages of AppleWin double hires display: correct, degraded color, and no color, that I'd like to attach to show the problem I'm talking about.

Re: Problem with double hires in AppleWin

<6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=408&group=comp.emulators.apple2#408

 copy link   Newsgroups: comp.emulators.apple2
X-Received: by 2002:a05:6214:1907:b0:5f4:cb43:27a4 with SMTP id er7-20020a056214190700b005f4cb4327a4mr745341qvb.8.1682689631134;
Fri, 28 Apr 2023 06:47:11 -0700 (PDT)
X-Received: by 2002:a81:99c7:0:b0:544:bbd2:74be with SMTP id
q190-20020a8199c7000000b00544bbd274bemr6031440ywg.4.1682689630905; Fri, 28
Apr 2023 06:47:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.emulators.apple2
Date: Fri, 28 Apr 2023 06:47:10 -0700 (PDT)
In-Reply-To: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:600:c67f:5fc0:c1cf:3c11:b3d6:e03a;
posting-account=9Dd-GgoAAAAjVgCPcBurQ6c4EXW6Wi8v
NNTP-Posting-Host: 2601:600:c67f:5fc0:c1cf:3c11:b3d6:e03a
References: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com>
Subject: Re: Problem with double hires in AppleWin
From: michael....@gmail.com (Michael AppleWin Debugger Dev)
Injection-Date: Fri, 28 Apr 2023 13:47:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2545
 by: Michael AppleWin Deb - Fri, 28 Apr 2023 13:47 UTC

On Thursday, April 27, 2023 at 11:45:46 PM UTC-7, Alan Rat wrote:
> Why does double hires that displays perfectly on an actual Apple IIe go wrong in AppleWin?

Before you open a bug report on GitHub can you report the order of soft-switches you're hitting please? Start AppleWin then

* press F7 to enter the debugger,
* type: BPM C050:C05F
* press Enter,
* type: BPM C00C:C00D
* press Enter, and
* press F7 again to exit the debugger, then
* Run your program.

AppleWin will switch back into the debugger when a softswitch (within the range specified above) is triggered. You can continue your program by pressing F7 (or alt. typing G and pressing Enter.)

> And as a side note, is there some way to attach a jpeg image to a message post here?

No, Usenet does not support binary attachments (thank god), only text. You must either:

1. Encode the binary to text (e.g. uuencode), or
2. Upload it to an image hosting site (e.g. imgur) and then share the URL.

> I'd like to attach to show the problem I'm talking about.

Opening a bug report on GitHub will let you attach your program, disk image, and screenshots if we can't diagnosis the issue here.
https://github.com/AppleWin/AppleWin/issues/new

Thanks,
Michael

Re: Problem with double hires in AppleWin

<124827be-a6ff-428a-b13c-c79a0a38fb86n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=409&group=comp.emulators.apple2#409

 copy link   Newsgroups: comp.emulators.apple2
X-Received: by 2002:a05:620a:110b:b0:746:977f:3aef with SMTP id o11-20020a05620a110b00b00746977f3aefmr967110qkk.1.1682695750044;
Fri, 28 Apr 2023 08:29:10 -0700 (PDT)
X-Received: by 2002:a81:d303:0:b0:54f:646d:19c8 with SMTP id
y3-20020a81d303000000b0054f646d19c8mr3444414ywi.3.1682695749917; Fri, 28 Apr
2023 08:29:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.emulators.apple2
Date: Fri, 28 Apr 2023 08:29:09 -0700 (PDT)
In-Reply-To: <6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:545:8201:6290:7c19:f44d:738e:cd4d;
posting-account=6MWRcwoAAADEISWRnEk_KzrIFE0G3e_e
NNTP-Posting-Host: 2601:545:8201:6290:7c19:f44d:738e:cd4d
References: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com> <6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <124827be-a6ff-428a-b13c-c79a0a38fb86n@googlegroups.com>
Subject: Re: Problem with double hires in AppleWin
From: alanr44...@yahoo.com (Alan Rat)
Injection-Date: Fri, 28 Apr 2023 15:29:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Alan Rat - Fri, 28 Apr 2023 15:29 UTC

I can tell you that my program starts off with PRINT CHR$(4)"PR#3":PRINT (via DOS 3.3) --> C00D
then the statement POKE 49246,PEEK(49239)=PEEK(49234) which triggers in the order C057 C052 C05E
and then POKE49232,0 for C050
C050 is then in effect all during execution, never C051
Double hires is thus displayed. When the program goes to the lores display, it issues:
PRINT CHR(17); which sets C00C
then the statement POKE 49238,PEEK(49247)=PEEK(49235) for C05F C053 C056
To return to double hires, it issues
PRINT CHR(18); which sets C00D
and again uses POKE 49246,PEEK(49239)=PEEK(49234) for C057 C052 C05E
and double hires is back, without any problem on an actual Apple IIe, but not so well in AppleWin.

I'm wondering if no one was ever previously aware of AppleWin displaying double hires in monochrome...?

Alan

On Friday, April 28, 2023 at 9:47:11 AM UTC-4, Michael AppleWin Debugger Dev wrote:
> On Thursday, April 27, 2023 at 11:45:46 PM UTC-7, Alan Rat wrote:
> > Why does double hires that displays perfectly on an actual Apple IIe go wrong in AppleWin?
> Before you open a bug report on GitHub can you report the order of soft-switches you're hitting please? Start AppleWin then
>
> * press F7 to enter the debugger,
> * type: BPM C050:C05F
> * press Enter,
> * type: BPM C00C:C00D
> * press Enter, and
> * press F7 again to exit the debugger, then
> * Run your program.
>
> AppleWin will switch back into the debugger when a softswitch (within the range specified above) is triggered. You can continue your program by pressing F7 (or alt. typing G and pressing Enter.)
> > And as a side note, is there some way to attach a jpeg image to a message post here?
> No, Usenet does not support binary attachments (thank god), only text. You must either:
>
> 1. Encode the binary to text (e.g. uuencode), or
> 2. Upload it to an image hosting site (e.g. imgur) and then share the URL..
> > I'd like to attach to show the problem I'm talking about.
> Opening a bug report on GitHub will let you attach your program, disk image, and screenshots if we can't diagnosis the issue here.
> https://github.com/AppleWin/AppleWin/issues/new
>
> Thanks,
> Michael

Re: Problem with double hires in AppleWin

<6065ad31-f57b-43f3-8380-c9c7223f13e8n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=410&group=comp.emulators.apple2#410

 copy link   Newsgroups: comp.emulators.apple2
X-Received: by 2002:a05:620a:16af:b0:74d:fd99:ab3e with SMTP id s15-20020a05620a16af00b0074dfd99ab3emr996521qkj.9.1682696311415;
Fri, 28 Apr 2023 08:38:31 -0700 (PDT)
X-Received: by 2002:a81:4319:0:b0:54e:e490:d190 with SMTP id
q25-20020a814319000000b0054ee490d190mr3519905ywa.4.1682696310963; Fri, 28 Apr
2023 08:38:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.emulators.apple2
Date: Fri, 28 Apr 2023 08:38:30 -0700 (PDT)
In-Reply-To: <124827be-a6ff-428a-b13c-c79a0a38fb86n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=198.27.175.98; posting-account=j7exVwoAAAAsgD38YhRB05M2Iy6seT-Q
NNTP-Posting-Host: 198.27.175.98
References: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>
<6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com> <124827be-a6ff-428a-b13c-c79a0a38fb86n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6065ad31-f57b-43f3-8380-c9c7223f13e8n@googlegroups.com>
Subject: Re: Problem with double hires in AppleWin
From: inexorab...@gmail.com (Joshua Bell)
Injection-Date: Fri, 28 Apr 2023 15:38:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3690
 by: Joshua Bell - Fri, 28 Apr 2023 15:38 UTC

On Friday, April 28, 2023 at 8:29:10 AM UTC-7, Alan Rat wrote:
> I can tell you that my program starts off with PRINT CHR$(4)"PR#3":PRINT (via DOS 3.3) --> C00D
> then the statement POKE 49246,PEEK(49239)=PEEK(49234) which triggers in the order C057 C052 C05E
> and then POKE49232,0 for C050
> C050 is then in effect all during execution, never C051
> Double hires is thus displayed. When the program goes to the lores display, it issues:
> PRINT CHR(17); which sets C00C
> then the statement POKE 49238,PEEK(49247)=PEEK(49235) for C05F C053 C056
> To return to double hires, it issues
> PRINT CHR(18); which sets C00D
> and again uses POKE 49246,PEEK(49239)=PEEK(49234) for C057 C052 C05E
> and double hires is back, without any problem on an actual Apple IIe, but not so well in AppleWin.
>
> I'm wondering if no one was ever previously aware of AppleWin displaying double hires in monochrome...?

This is AppleWin's emulation of the Video-7 / AppleColor / Le Chat Mauve RGB card protocol for DHR mono and other modes. If you switch your video setting from RGB to another (e.g. Composite) this problem will go away. Or change your program so that it exits/re-enters graphics mode before hitting the softswitches in order.

As you noticed, the modes are activated by loading a bit into 80COL and then turning AN3 off/on to shift the bit into a 2-bit register.

Mode 1 - Monochrome 560 x 192
Write $C00C (80COL off) - loads 0
Write $C05E (AN3 off)
Write $C05F (AN3 on) - shifts 0 into register
Write $C05E (AN3 off)
Write $C05F (AN3 on) - shifts 0 into register
Write $C00D (80COL on)
Write $C05E (AN3 off) - re-enable DHGR

Mode 2 - Color 140 x 192
Write $C00D (80COL on) - loads 1
Write $C05E (AN3 off)
Write $C05F (AN3 on) - shifts 1 into register
Write $C05E (AN3 off)
Write $C05F (AN3 on) - shifts 1 into register
Write $C05E (AN3 off) - re-enable DHGR

There's also weird Mode 3 (shift in 0 then 1), where the otherwise unused high bits of each DHGR byte set the output to monochrome (0) or color (1). This is detailed in the Video-7 RGB manual or Apple's "Extended 80-Column Text/AppleColor Adaptor Card" manual - they all follow the same protocol.

More details https://github.com/AppleWin/AppleWin/issues/523 and follow-on issues.

Re: Problem with double hires in AppleWin

<d3990b8b-b247-4a68-96fa-7a1afd5766d0n@googlegroups.com>

 copy mid

https://www.novabbs.com/devel/article-flat.php?id=412&group=comp.emulators.apple2#412

 copy link   Newsgroups: comp.emulators.apple2
X-Received: by 2002:a05:620a:130f:b0:74e:5103:2c9c with SMTP id o15-20020a05620a130f00b0074e51032c9cmr1508533qkj.12.1682786082669;
Sat, 29 Apr 2023 09:34:42 -0700 (PDT)
X-Received: by 2002:a25:c0d0:0:b0:b9a:672d:23c9 with SMTP id
c199-20020a25c0d0000000b00b9a672d23c9mr5432114ybf.0.1682786082477; Sat, 29
Apr 2023 09:34:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo2.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.emulators.apple2
Date: Sat, 29 Apr 2023 09:34:42 -0700 (PDT)
In-Reply-To: <6065ad31-f57b-43f3-8380-c9c7223f13e8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.60.98.2; posting-account=6MWRcwoAAADEISWRnEk_KzrIFE0G3e_e
NNTP-Posting-Host: 71.60.98.2
References: <7d000941-3cd4-4dc2-92ca-3a5b425f01e5n@googlegroups.com>
<6c27a638-ef91-4ba7-bb09-b7f5784dad16n@googlegroups.com> <124827be-a6ff-428a-b13c-c79a0a38fb86n@googlegroups.com>
<6065ad31-f57b-43f3-8380-c9c7223f13e8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d3990b8b-b247-4a68-96fa-7a1afd5766d0n@googlegroups.com>
Subject: Re: Problem with double hires in AppleWin
From: alanr44...@yahoo.com (Alan Rat)
Injection-Date: Sat, 29 Apr 2023 16:34:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5121
 by: Alan Rat - Sat, 29 Apr 2023 16:34 UTC

Thank you very much for that information, Joshua! With it I was able to solve the problem. I didn't want the proper operation of my program to depend on NOT choosing RGB, so I incorporated the soft-switchiing succession you indicated, and that took care of it.

I had happened to choose RGB in the first place just because I liked the way it looked. I see now that the AppleWIn help file does mention that with RGB, double hires is 140x192 pixels (color) "or software selectable as: B&W or mixed Color/B&W", but it doesn't warn you that it may becoime monochrome unintentionally, or what to do to get color back if that should happen. It does go on to say that "Some double hi-res titles may have compatibility issues", after which it refers to "Troubleshooting", although that only cites three specific brand-name situations, and only offers a solution for the first of them, which was a different problem. In the end, though, it was good to be using RGB, as it's just as well to know where there could be a problem, and work around it. As I said, I didn't want my program to be beholden to the choice of video option.

Alan

On Friday, April 28, 2023 at 11:38:32 AM UTC-4, Joshua Bell wrote:
> On Friday, April 28, 2023 at 8:29:10 AM UTC-7, Alan Rat wrote:
> > I can tell you that my program starts off with PRINT CHR$(4)"PR#3":PRINT (via DOS 3.3) --> C00D
> > then the statement POKE 49246,PEEK(49239)=PEEK(49234) which triggers in the order C057 C052 C05E
> > and then POKE49232,0 for C050
> > C050 is then in effect all during execution, never C051
> > Double hires is thus displayed. When the program goes to the lores display, it issues:
> > PRINT CHR(17); which sets C00C
> > then the statement POKE 49238,PEEK(49247)=PEEK(49235) for C05F C053 C056
> > To return to double hires, it issues
> > PRINT CHR(18); which sets C00D
> > and again uses POKE 49246,PEEK(49239)=PEEK(49234) for C057 C052 C05E
> > and double hires is back, without any problem on an actual Apple IIe, but not so well in AppleWin.
> >
> > I'm wondering if no one was ever previously aware of AppleWin displaying double hires in monochrome...?
> This is AppleWin's emulation of the Video-7 / AppleColor / Le Chat Mauve RGB card protocol for DHR mono and other modes. If you switch your video setting from RGB to another (e.g. Composite) this problem will go away. Or change your program so that it exits/re-enters graphics mode before hitting the softswitches in order.
>
> As you noticed, the modes are activated by loading a bit into 80COL and then turning AN3 off/on to shift the bit into a 2-bit register.
>
> Mode 1 - Monochrome 560 x 192
> Write $C00C (80COL off) - loads 0
> Write $C05E (AN3 off)
> Write $C05F (AN3 on) - shifts 0 into register
> Write $C05E (AN3 off)
> Write $C05F (AN3 on) - shifts 0 into register
> Write $C00D (80COL on)
> Write $C05E (AN3 off) - re-enable DHGR
>
> Mode 2 - Color 140 x 192
> Write $C00D (80COL on) - loads 1
> Write $C05E (AN3 off)
> Write $C05F (AN3 on) - shifts 1 into register
> Write $C05E (AN3 off)
> Write $C05F (AN3 on) - shifts 1 into register
> Write $C05E (AN3 off) - re-enable DHGR
>
> There's also weird Mode 3 (shift in 0 then 1), where the otherwise unused high bits of each DHGR byte set the output to monochrome (0) or color (1). This is detailed in the Video-7 RGB manual or Apple's "Extended 80-Column Text/AppleColor Adaptor Card" manual - they all follow the same protocol.
>
> More details https://github.com/AppleWin/AppleWin/issues/523 and follow-on issues.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor