Previous Thread
Next Thread
Print Thread
Page 5 of 6 1 2 3 4 5 6
Re: Hanimex Pencil 2 - vdp interrupts [Re: plgDavid] #115122
04/20/19 08:00 PM
04/20/19 08:00 PM
Joined: Jan 2019
Posts: 14
France
xavierm Offline OP
Member
xavierm  Offline OP
Member
Joined: Jan 2019
Posts: 14
France
Originally Posted by plgDavid
Didn't find a non working ColecoVision game so far (tried 20 or so)

Scanned the PCBs
https://imageshack.com/a/wFco/1

Amazing! Good scans of the inside were really needed πŸ‘Œ hope this would help one day πŸ€— maybe for a fpga project πŸ€”?

You said you have only plugged the coleco games and it worked?
I had tried this with the emulator and nothing worked. It said "no cartridge".
What I had understood with the help of the debugger is that the bios search for "COPYRIGHT SOUNDIC" from $8000 to $8010. If it's not equal the cartridge is set unknown.
Maybe I've missed something?

For the adapter I had a pic of the inside I'll post it when I'll find it. In fact there is only one chip. My guess is there is only bios code. Maybe a replacement of the main bios? For me it's the only thing it does, but I don't know how πŸ˜…

Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115124
04/21/19 12:03 AM
04/21/19 12:03 AM
Joined: Jan 2019
Posts: 14
France
xavierm Offline OP
Member
xavierm  Offline OP
Member
Joined: Jan 2019
Posts: 14
France
You can see on these pics the pcb of the colecovision adapter.
Only one chip, nothing else.
It's the only reference I have. Hope it helps 😊

Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115125
04/21/19 08:22 AM
04/21/19 08:22 AM
Joined: Aug 2004
Posts: 1,382
Robbbert Offline
Very Senior Member
Robbbert  Offline
Very Senior Member
Joined: Aug 2004
Posts: 1,382
It looks like a ROM. Are you in a position to dump it?

Re: Hanimex Pencil 2 - vdp interrupts [Re: Robbbert] #115128
04/21/19 05:00 PM
04/21/19 05:00 PM
Joined: Jan 2019
Posts: 14
France
xavierm Offline OP
Member
xavierm  Offline OP
Member
Joined: Jan 2019
Posts: 14
France
Originally Posted by Robbbert
It looks like a ROM. Are you in a position to dump it?

I'm not owning this rom, nor able to get it to make a dump. I had told the owner if it was possible for him but... No.

I will send him a new message, perhaps things have changed 😁

Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115131
04/21/19 11:32 PM
04/21/19 11:32 PM
Joined: Aug 2009
Posts: 191
Montreal
P
plgDavid Offline
Senior Member
plgDavid  Offline
Senior Member
P
Joined: Aug 2009
Posts: 191
Montreal
Originally Posted by xavierm

You said you have only plugged the coleco games and it worked?
I had tried this with the emulator and nothing worked. It said "no cartridge".
What I had understood with the help of the debugger is that the bios search for "COPYRIGHT SOUNDIC" from $8000 to $8010. If it's not equal the cartridge is set unknown.
Maybe I've missed something?


Yes I was doing a hardware test replacing the Pencil Bios for the Coleco bios (my Pencil now has a switch to toggle between both).
With the coleco bios all games that I've tried work as if they were in a ColecoVision.... Well they are PAL and slow, but they work.

Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115133
04/22/19 01:18 AM
04/22/19 01:18 AM
Joined: Aug 2009
Posts: 191
Montreal
P
plgDavid Offline
Senior Member
plgDavid  Offline
Senior Member
P
Joined: Aug 2009
Posts: 191
Montreal
As far as the ColecoVision adapter is concerned, this is interesting.
The 2764 in there has its !OE on the memory slot pin 17 (which is connected just like the BIOS to the same Y0 line of the 74138, (missed this info last time)
So it maps to $0000 and most possibly a Coleco-Compatible BIOS that we do not have dumped. (or the real thing which would be very surprising)

So there is of course a needed mechanism to shut down the native Pencil II bios.

The console's bios's !OE line is called !XTM0 on the silkscreen, (not external M0)
Its pulled down on the mainboard through R6 and connects to line 2 of the memory slot
Looking into the ColecoVision adapter you can see that pin2 is connected to VCC, so there is no conflict for $0000

Back to the 74LS138@U10: [edit]

Y0:$0000 (BIOS EPROM - and memory slot pin 17)
Y1:$8000 (Cart pin 18)
Y2:$4000 (External memory slot pin 18)
Y3:$C000 (Cart pin 2)
Y4:$2000 (External memory slot pin 16)
Y5:$A000 (Cart pin 22)
Y6:$6000 (RAM chip)
Y7:$E000 (Cart pin 27)

Last edited by plgDavid; 04/22/19 01:21 AM.
Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115199
04/30/19 01:01 PM
04/30/19 01:01 PM
Joined: Aug 2009
Posts: 191
Montreal
P
plgDavid Offline
Senior Member
plgDavid  Offline
Senior Member
P
Joined: Aug 2009
Posts: 191
Montreal
All set https://twitter.com/occitel/status/1123126397864697856?s=20 just waiting for my IZE80 board to cross the Atlantic to France and they should get the first game dumped.

Last edited by plgDavid; 04/30/19 01:01 PM.
Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115210
05/01/19 11:40 AM
05/01/19 11:40 AM
Joined: Jul 2008
Posts: 25
S
starlord Offline
Member
starlord  Offline
Member
S
Joined: Jul 2008
Posts: 25
Great! Who came through? My silicium i take it?

Edit: never mind, just saw the tweet. Great job.

Last edited by starlord; 05/01/19 01:58 PM.
Re: Hanimex Pencil 2 - vdp interrupts [Re: plgDavid] #115214
05/01/19 05:04 PM
05/01/19 05:04 PM
Joined: Jan 2019
Posts: 14
France
xavierm Offline OP
Member
xavierm  Offline OP
Member
Joined: Jan 2019
Posts: 14
France
Originally Posted by plgDavid
All set https://twitter.com/occitel/status/1123126397864697856?s=20 just waiting for my IZE80 board to cross the Atlantic to France and they should get the first game dumped.

I think things would go further after the game will be dumped. We could see how it works and make emulation better.

I'll post something about that shortly. I have a simple code showing rasters, so using nmi, and with a normal execution rasters seems not to be at the right place on screen. If after i use the debugger and follow step by step the execution, rasters go at the wright place. It's like if there is some timer issue or wrong cycle count.
I'll post screen shots and the assembly code.

Re: Hanimex Pencil 2 - vdp interrupts [Re: xavierm] #115216
05/01/19 07:39 PM
05/01/19 07:39 PM
Joined: Jan 2019
Posts: 14
France
xavierm Offline OP
Member
xavierm  Offline OP
Member
Joined: Jan 2019
Posts: 14
France
In this picture we can see a normal execution. Lines are drawn during nmi. [Linked Image]

In this one all lines are correctly drawn.[Linked Image].

The only difference is that the second one is drawn using the debugger by pressing F11 after every instructions. I'm maybe wrong, but i'm thinking of a wrong timing in normal run.

Code
	; Header d'une cartouche Pencil II
	org $8000
	; COPYRIGHT SOUNDIC
	defb "COPYRIGHT SOUNDIC"	; 8000 - 8010
	; 8011 - 8034
	;
	; 8011 - START
	; 8014 - NMI
	; 8029 - INT
	; Point d'entrΓ©e du lancement du programme sur la cartouche
	jp start			; 8011 - 8013

	;defs 32,0
        ; NMI
        jp inthandler           	; 8014 - 8016
	;defs 10,0
	defs 6,0
	; RST 18
	ret
	nop
	defs 13,0
	;jp inthandler			; 8029 - 802B
	reti
	nop
        ;defs 32,0
        defs 27,0 

	; VERSION!TITRE!DATE (C)
	defb "BETA!** VDP TESTS **!2019"
	defs 10,0


; VARIABLES

dataVDP:	EQU $BE ; VDP Data port
cmdVDP:		EQU $BF ; VDP Command port
ramtop:         equ $7050
        include "tms.asm"

inthandler:
        in      a, (tmsreg)             ; clear interrupt flag
        call    rasters 
        ei
        reti
        
rasters:
	; Register 7 = $2 => 0000 0010 (BGC)
	ld c, $02
lp_b:
	ld a, c
	out ($bf), a
	ld a, $87
	out ($bf), a

        inc c
        ld a, $15
lp_a:
	dec a
	jp nz, lp_a
	nop
	nop
	add a, 1
	add a, 1
	add a, 1
	ld a, c
	sub a, $50
	jp nz, lp_b

	xor a, a
	out ($bf), a
	ld a, $87
	out ($bf), a

	ret


start:
	ld	($7000),sp			; save old stack poitner
        ld      sp, ramtop                      ; set up stack

	call    tmsbitmap
        call	$505 ; TURN_OFF_SOUND
	call	tmsintenable

mainLoop:
	jr mainLoop



Code is compiled with z80asm on Linux.

What do you think about ?

Page 5 of 6 1 2 3 4 5 6

Who's Online Now
3 registered members (hal3000, R. Belmont, Breiztiger), 113 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Shout Box
Forum Statistics
Forums9
Topics8,666
Posts113,616
Members4,850
Most Online324
Dec 20th, 2018
Powered by UBB.threads™ PHP Forum Software 7.6.1.1
(Release build 20180111)
Page Time: 0.033s Queries: 14 (0.015s) Memory: 5.7315 MB (Peak: 5.9521 MB) Zlib enabled. Server Time: 2019-07-22 20:24:40 UTC