Previous Thread
Next Thread
Print Thread
Page 2 of 2 1 2
#112832 - 03/10/18 06:18 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: Mar 2001
Posts: 15,954
R. Belmont Offline
R. Belmont  Offline

Very Senior Member

Joined: Mar 2001
Posts: 15,954
USA
In that case I'd guess the 8275 only sees every other byte - that's easy enough to pull off at a hardware level. Are there schematics?

#112834 - 03/10/18 06:41 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: May 2012
Posts: 464
shattered Online content
Senior Member
shattered  Online Content
Senior Member

Joined: May 2012
Posts: 464

#112835 - 03/10/18 07:28 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: Jan 2012
Posts: 782
crazyc Offline
Senior Member
crazyc  Offline
Senior Member

Joined: Jan 2012
Posts: 782
That is weird, two 8275s but only one is connected to the chargen. The way it's wired up does suggest that the second handles char attributes. Strangely though, the data fed by the dmac is the same to both except the topmost bit of the second crtc. That's not quite right, although the second crtc doesn't connect the drq output and the data lines (other than bit 7) are the same, the WR line is different when dack is active.

Last edited by crazyc; 03/10/18 08:18 PM.
#112836 - 03/10/18 08:26 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: May 2012
Posts: 464
shattered Online content
Senior Member
shattered  Online Content
Senior Member

Joined: May 2012
Posts: 464
So the first one (DD55) is not getting data via DMA, only second one does? Fun smile

#112837 - 03/10/18 08:35 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: Jan 2012
Posts: 782
crazyc Offline
Senior Member
crazyc  Offline
Senior Member

Joined: Jan 2012
Posts: 782
Not sure but I suspect it is by feeding the second one first so the first one will hold drq high until both get a byte.

#112838 - 03/10/18 09:59 PM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: May 2012
Posts: 464
shattered Online content
Senior Member
shattered  Online Content
Senior Member

Joined: May 2012
Posts: 464
There's a bit of source code in the rom at the end (comments by me):
Code
CALL pEPEdA~A ; transmit
RET
KTO:
LXI H,bufp
SHLD Tp
KTO1:
CALL ANBUF
LDA FN
ANI 1
JNZ zb4
LDA zHp2
CPI 0


and it matches this

Code
2bbc: cd 78 19  call $1978
2bbf: c9        ret
2bc0: 21 28 df  lxi  h,$df28
2bc3: 22 25 df  shld $df25
2bc6: cd 89 2d  call $2d89
2bc9: 3a 05 de  ldax $de05
2bcc: e6 01     ani  $01
2bce: c2 72 26  jnz  $2672
2bd1: 3a 4c df  ldax $df4c
2bd4: fe 00     cpi  $00

#112843 - 03/11/18 10:46 AM Re: A bug in i8275 emulation [Re: fulivi]  
Joined: May 2012
Posts: 464
shattered Online content
Senior Member
shattered  Online Content
Senior Member

Joined: May 2012
Posts: 464
btw, EAROM hookup is currently wrong -- top 4 bits of data bus are wired to CS, /WR, /ERA and RD pins. 0x08D9 is EAROM restore routine and 0x1F8D is EAROM save.

EDIT: quick EAROM hack makes the terminal behave a little better -- it accepts serial port input, but still ignores keyboard and display is not stable:

[Linked Image]

Last edited by shattered; 03/11/18 02:18 PM.
Page 2 of 2 1 2

Who's Online Now
5 registered members (B2K24, seanriddle, Pernod, shattered, dxl), 36 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,543
Posts111,677
Members4,795
Most Online225
May 26th, 2014
Powered by UBB.threads™ PHP Forum Software 7.6.0
Page Time: 0.028s Queries: 15 (0.009s) Memory: 4.9848 MB (Peak: 5.2106 MB) Zlib enabled. Server Time: 2018-06-20 18:53:07 UTC