Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: awanderin Newsgroups: comp.emulators.apple2 Subject: Re: The MoDapple Thread was Re: An emulator concept... Date: Thu, 10 Nov 2016 22:56:20 -0700 Organization: A noiseless patient Spider Lines: 42 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="3813f38a3434a5c0a9d596324d36b6ca"; logging-data="9730"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/R8p02DwQm4GObYBrZ77Ptfzg735QSpQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:Hs8yncW8CyHM01EOVU4uUBC9RW0= sha1:xcMo0WoCsP/z8JZt0EbPIeokYUc= Xref: csiph.com comp.emulators.apple2:2112 Steve Nickolas writes: > In my current work on MoDapple, a few comments... > > 1. I've started to work on an HGR scanline colorizer, but it's not > working correctly. The function would take a scanline in the form of > 280 pixels and 40 "half shift" flags, convert to a 320x1 colorized > scanline, then plot as 640x2; it is called "cast". > > 2. Anyone versed in winapi know how to emulate the "speaker polarity" > trick? I have code to do "speaker polarity" under DOS, but it works > by...flipping the speaker polarity. > > 3. The weird lagginess of the 80-column clearing, with ttywin and the > graphical libraries, has me completely stumped. Why does it work just > fine only in ttycurses? Why does the LAMB version fail on the > original //e? This stuff defies any explanation I can come up with. > > 4. I can interpret a joystick, but as I recall, just feeding the 8-bit > value into the appropriate memory location isn't enough to make the > same value come out the other end of a PDL(0) or PDL(1)... any idea > what I need to be doing? $C064+n (n=paddle number) only set the high-bit when the paddle-timer circuit times out. That is, when the R-C circuit reaches the threshold. So, what the emulator will need to do is, after $c070 is triggered, only set $c064+n to $80 after some amount of CPU cycles proportional to the value of each joysticks' axis. I think the paddle-read subroutine is 11 cycles per loop, but that's just a guess. > If I can somehow get past the lag issues... I can't even get > *80-column text* to work right, let alone DGR or DHGR. I know pretty > much none of this affects ttycurses, which *happily* displays > 80-column text snappily, and DGR with only minimal slowdown. > > I have plenty of test cases for DHGR, including Prince of Persia. > > -uso. -- -- Jerry awanderin at gmail dot com