Wiki editing discussion

Pagina 89/137
82 | 83 | 84 | 85 | 86 | 87 | 88 | | 90 | 91 | 92 | 93 | 94

Van Meits

Scribe (6473)

afbeelding van Meits

14-10-2020, 13:39

I did some testing with it

out &h40,8
print inp(&h40)

returns 247 (inverted 8) on FX, WX and WSX. On other tried systems it returns 255

Van gdx

Enlighted (5011)

afbeelding van gdx

14-10-2020, 13:44

Some MSX1s and few MSX2s can return a random value (value depending on the hardware design).

Van Meits

Scribe (6473)

afbeelding van Meits

14-10-2020, 13:51

Not if you first get a 2 from 2DH. That will narrow it down to only those three computers.

Van sdsnatcher73

Prophet (2522)

afbeelding van sdsnatcher73

15-10-2020, 11:13


Can’t seem to figure out how to upload it to the wiki (it is too modern for MSX user and to old school for modern PC user)

Van Grauw

Ascended (10305)

afbeelding van Grauw

15-10-2020, 12:23

https://www.msx.org/wiki/Main_Page

See the “Upload file” link in the “Toolbox” section on the right.

Van mars2000you

Enlighted (6097)

afbeelding van mars2000you

15-10-2020, 12:46

sdsnatcher73 wrote:

Can’t seem to figure out how to upload it to the wiki (it is too modern for MSX user and to old school for modern PC user)

Picture added to the AVT-200 page Smile

Van sd_snatcher

Prophet (3498)

afbeelding van sd_snatcher

15-10-2020, 15:22

Meits wrote:

Not if you first get a 2 from 2DH. That will narrow it down to only those three computers.

Nope. This will also return 247 on some of the later Sanyo models. Notably the PHC-70FD and PHC-70FD2. There might be others.

Van Meits

Scribe (6473)

afbeelding van Meits

15-10-2020, 15:35

Rats... Didn't check that one...

Van Grauw

Ascended (10305)

afbeelding van Grauw

15-10-2020, 16:21

Meits wrote:

I received the source, for those interested:

	in	a,(40H)
	cpl
	push	af
	ld	a,8
	out	(40H),a		; Factorycode 8 (Panasonic) to I/O port 40h
	in	a,(40H)		; read back value
	cpl			; invert all bits
	cp	8		; if value is not the same
	jr 	nz,NotWx	; Then it's not a FX/WX/WSX
	xor	a		; send 0 to I/O port 41h
	out	(41H),a		; set 5,37MHz mode (1 is go back to 3,57MHz)
NotWX:	pop	af
	out	(40H),a

I do not have any asm skills so don't ask me questions

That routine is good. One should never set expanded I/O ports 41H-4FH without first setting the appropriate device ID to 40H and checking if it is present (reading back the complement), and one should always restore the existing selection after modification (especially on interrupt handlers and hooks).

Although instead of:

	xor	a		; send 0 to I/O port 41h
	out	(41H),a		; set 5,37MHz mode (1 is go back to 3,57MHz)

I would only modify the appropriate bit:

	in	a,(41H)		; get current value of I/O port 41h
	res	0,a		; reset bit 0 (=5.37 MHz) (set for 3,57MHz)
	out	(41H),a		; apply changed value

And yes be aware that although Sanyo MSX2+es do expose the flag, and I think the turboR as well, it’s not hooked up, so (re)setting it has no effect on their CPU speed.

Van Manuel

Ascended (18389)

afbeelding van Manuel

15-10-2020, 22:13

About the AVT DPC-200: the Wiki article on the machine says it's released in 1985 but the AVT category article says 1984... which is the real year? Smile
Also, I doubt that ECC had something to do with the DPC-200. It looks like AVT worked a bit with ECC (for example for disk ROMs), but that seems about it. I don't think they had something to do with the MSX models. What do you think?

Pagina 89/137
82 | 83 | 84 | 85 | 86 | 87 | 88 | | 90 | 91 | 92 | 93 | 94