New Online MSX emulator

Страница 32/48
25 | 26 | 27 | 28 | 29 | 30 | 31 | | 33 | 34 | 35 | 36 | 37

By ppeccin

Champion (355)

Аватар пользователя ppeccin

11-04-2016, 23:01

Guys, can you point me to an EASY app or game for the MSX2 that makes good use of a mouse, so I can test my implementation?
Preferably, I need an app that uses a pointer limited to the screen (like Windows), and one that has unlimited mouse movement (like some ball-controlling games)

Thanks

By Manuel

Ascended (16034)

Аватар пользователя Manuel

11-04-2016, 23:17

Graph Saurus 2 Smile

By Grauw

Ascended (8700)

Аватар пользователя Grauw

12-04-2016, 00:08

DD-Graph AGE2
Breaker (Radarsoft)

By ppeccin

Champion (355)

Аватар пользователя ppeccin

12-04-2016, 03:49

Does Breaker use the mouse and the joysticks at the same time?
Are there any apps the do?

By ppeccin

Champion (355)

Аватар пользователя ppeccin

12-04-2016, 19:41

Guys, regarding the mouse hardware interface through the PSG ports, can someone explain the correct write/read sequences to read the mouse movement and also the mouse buttons state?

I know the program is supposed to flip pin 8 to signal the mouse to send the next 4 bits, but I don't know what is the correct sequence, and when the sequence is supposed to terminate, is that is the case.
Is there any timeouts involved?

Thanks

By Manuel

Ascended (16034)

Аватар пользователя Manuel

12-04-2016, 21:04

By ppeccin

Champion (355)

Аватар пользователя ppeccin

12-04-2016, 21:17

Yes, all I know comes from this exact page!
But I need more details.... :-)

Like... What happens if you flip pin 8 more than 4 times?
What happens if you write to register 15 but keep pin 8 unchanged?
Do apps normally consider 1 unit of movement equivalent to 1 pixel on screen?

By NYYRIKKI

Enlighted (5454)

Аватар пользователя NYYRIKKI

15-04-2016, 04:39

ppeccin wrote:

Guys, can you point me to an EASY app or game for the MSX2 that makes good use of a mouse, so I can test my implementation?
Preferably, I need an app that uses a pointer limited to the screen (like Windows), and one that has unlimited mouse movement (like some ball-controlling games)

Usually programs really limit the movement, but you can try something like:

10 SCREEN1:SPRITE$(0)=" P "
20 R=PAD(12) ' Joyport 1
30 X=(X+PAD(13))AND255:Y=(Y+192+PAD(14))MOD192
40 PUT SPRITE0,(X,Y),8,0
50 IF STRIG(1)THEN SCREEN 0 ELSE 20
ppeccin wrote:

Does Breaker use the mouse and the joysticks at the same time?
Are there any apps the do?

IIRC in breaker you can select if you use mouse or keyboard but I don't think it supports both at a same time.
Theoretically it is possible to use both at a same time when you use BIOS routines, but I don't know any software that would support that on purpose. How ever if you want to experiment, you can expand the above BASIC program with stick(1) statements. I actually have somewhere a joystick port splitter box I got somewhere from the Netherlands in 90's. I don't think it was very popular though.

ppeccin wrote:

Guys, regarding the mouse hardware interface through the PSG ports, can someone explain the correct write/read sequences to read the mouse movement and also the mouse buttons state?

Mouse buttons works exactly like joystick buttons.

Quote:

I know the program is supposed to flip pin 8 to signal the mouse to send the next 4 bits, but I don't know what is the correct sequence, and when the sequence is supposed to terminate, is that is the case.
Is there any timeouts involved?

Yes it is very simple as you can see from the posted link... First comes 1 byte X delta and then 1 byte of Y delta... If you continue giving clocks, this just repeats... Practically you just keep receiving 0's because there is no time for X/Y to change values before read. The BIOS routine is overly complicated because it tries to talk two different protocols out of joystick port at the same time and then tries to figure out, what kind of device responded. Don't let it to fool you. Practically I don't know if there should be any kind of timeout... Once I made PS/2 adapter I added timeout... for just in case...

ppeccin wrote:

What happens if you write to register 15 but keep pin 8 unchanged?

Well, eh... then you write to register 15 but keep pin 8 unchanged... No magic involved. See meaning of bits here

Quote:

Do apps normally consider 1 unit of movement equivalent to 1 pixel on screen?

Yes, usually 1 unit = 1 (sprite) pixel.

By ppeccin

Champion (355)

Аватар пользователя ppeccin

15-04-2016, 15:44

ppeccin wrote:

,
Is there any timeouts involved?
What happens if you write to register 15 but keep pin 8 unchanged?

I mean there must be some kind of "reset" for the alternating read sequence... Otherwise it would be very easy for software to lose "synch" and start reading wrong values (like Y instead of X, etc).

I suppose there is some timeout, like if you don't flip pin 8 for a certain period of time, the sequence resets to the first value the next time you flip pin8.
Or, maybe the sequence resets when you write to the port but keep pin8 unchanged.

Do you understand what I mean?

By ppeccin

Champion (355)

Аватар пользователя ppeccin

15-04-2016, 23:26

Guys, could you please point me to any software that can show images in YJK modes? (Screen 10 - 12)

Preferably photos or already drawn images. I have both graphic editors mentioned here, but its difficult to tell if the emulation is working without seeing real images.

Страница 32/48
25 | 26 | 27 | 28 | 29 | 30 | 31 | | 33 | 34 | 35 | 36 | 37