[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Project: Tangerine: Emulation with a twist
In article
<Pine.LNX.4.62.0510110223220.19647@static-141-149-129-16.buff.east.veriz
on.net>,
Lyrical Nanoha <LyricalNanoha@dosius.net> wrote:
[...]
> 1. The location of the code in the //e ROM to flash the cursor.
>
> I need to reroute this code into native space so I can make the cursor
> flash on the Tangerine screen (which is currently not in the Apple memory
> space).
On the original II, the character where the "cursor" is located is set
to flash by clearing bit 7 and setting bit 6. The actual flashing is
done in hardware:
FD0C: A4 24 754 RDKEY LDY CH
FD0E: B1 28 755 LDA (BASL),Y ;SET SCREEN TO FLASH
FD10: 48 756 PHA
FD11: 29 3F 757 AND #$3F ;CLEAR BITS 6 & 7
FD13: 09 40 758 ORA #$40 ;SET BIT 6
FD15: 91 28 759 STA (BASL),Y
FD17: 68 760 PLA
FD18: 6C 38 00 761 JMP (KSWL) ;GO TO USER KEY-IN
> 2. Where the default PEEK(33) is set to 40.
FB4B: 85 22 512 SETWND STA WNDTOP ;SET FOR 40 COL WINDOW
FB4D: A9 00 513 LDA #$00
FB4F: 85 20 514 STA WNDLFT
FB51: A9 28 515 LDA #$28
FB53: 85 21 516 STA WNDWDTH
FB55: A9 18 517 LDA #$18
FB57: 85 23 518 STA WNDBTM
--
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/