Welcome, Guest. Please login or register.


Author Topic: Pasziansz (Solitaire) from Hsoft, need EnterMice support (Read 6647 times)

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #30 on: 2016.April.27. 11:26:23 »
I guess the problem are: executing the EnterMice routine need more CPU time....


This was my first thought, then I removed the EnterMice routine, only parsing the left mouse button on the original parsing routine. I have only easy added a RRCA and a jr nc, label, only three bytes more. The program works normal on the real machine, parsing correctly Joy1 Fire, and later  Enter, Space and ESC.

But bit 1 on B6h port gives no activity:

Code: [Select]
               LD A,5                  ;B=0
                OUT (0B5H),A            ;FIRE2
                IN A,(0B6H)
                RRCA
                RR B
                XOR A                   ;FIRE1
                OUT (0B5H),A
                IN A,(0B6H)
                RRCA
;Modification here
jr nc, PRESSED; Joy1 fire or left mouse button suits us here
rrca
PRESSED
;end modification        
RR B
                LD A,(ALLKEY0+8)        ;SPACE on row 8
                RLCA
                RLCA
                RR B
                LD A,(ALLKEY0+7)        ;ENTER on row 7
                RLCA
                RLCA
                RR B
                LD A,(ALLKEY0+3)        ;ESC on row 3
                RLCA
                RR B
                LD A,(MKEY)
                OR 11111000B
                XOR B
                LD HL,(KEY)
                LD (KEY),A
                OR L
                XOR L
                OR H
                LD (KEYPRESS),A

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #31 on: 2016.April.27. 12:24:54 »
Just to test bit 2 of port B6h, I have added one more rrca, with the same null results.

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #32 on: 2016.May.05. 19:07:45 »
Now I have managed  the Pasziansz game to work with the old Neos mouse +Boxsoft clone modified to read K column instead of J column. Also it works with the Boxsoft interface made of optocouplers + Neos mouse.

Still PS/2 converters(including EnterMice) didn't work at full, but at least the pointer moves.
« Last Edit: 2016.May.05. 19:31:05 by gflorez »

Offline Ep128

  • EP addict
  • *
  • Posts: 1595
  • Country: hu
  • OS:
  • Windows Vista/Server 2008 Windows Vista/Server 2008
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
    • Honlapom
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #33 on: 2016.May.06. 00:05:50 »
I hope so, he manages to solve it! :-) Let us wait for it. (Passziansz and Swap would be very good with a mouse!)

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Unknown Unknown
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #34 on: 2016.May.09. 00:25:25 »
Thanks, Ep128.

At last I have fixed the movement on all interfaces. Of course it was a silly error from me.

On EnterMice the button still acts a little erratic, only clicking when the mouse is in movement....

On a few days I will have the definitive version.

At the first screen, when the music is playing, press Space to continue.
« Last Edit: 2016.May.09. 01:38:32 by gflorez »

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #35 on: 2016.May.09. 01:07:01 »
Sorry, not days, minutes. This is the definitive version.

Exit from  the music on the main screen must be done with Space when on Entermice. I have tried to call the mouse routine there but it corrupts the music as it adds time to the keyboard capture..

Edit, this is really the definitive version.... now EnterMice mouse button stops the "Pop corn" melody.

Hint thanks to Pear.
« Last Edit: 2016.May.09. 17:12:48 by gflorez »

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #36 on: 2016.May.09. 13:16:38 »
Added the Pasziansz game to the list of compatible programs inside the EnterMice wiki.

The very first one, but I hope not the last....

Offline pear

  • EP lover
  • *
  • Posts: 746
  • Country: pl
  • Z80 only
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #37 on: 2016.May.09. 17:53:06 »
The problem is that the PS/2 mouse buttons are not connected directly to the terminals in the joystick port.
To close the appropriate contacts EnterMice must first read the status of the mouse buttons.
Updating is triggered by change in the RTS, exactly by the timeout 1.5 ms after the last change of this state.
Hint is, to change the state of the RTS signal and force data reading from the mouse.
You don't have to read data from EnterMice if you not need them, but contacts of buttons in the joystick port will be connected properly.
That's all.

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows XP Windows XP
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #38 on: 2016.May.09. 22:22:32 »
I have put an explanation and example on the EnterMice wiki pages.

Offline pear

  • EP lover
  • *
  • Posts: 746
  • Country: pl
  • Z80 only
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #39 on: 2016.May.10. 07:56:58 »
I did a little correction.

Offline Zozosoft

  • EP addict
  • *
  • Posts: 13313
  • Country: hu
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 46.0 Firefox 46.0
    • View Profile
    • http://enterprise.iko.hu/
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #40 on: 2016.May.19. 22:02:24 »
It is works fantastic!!!

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Firefox 44.0 Firefox 44.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #41 on: 2016.May.19. 23:27:50 »
Yes, it works...

Try with the serial card and EnterMice at the same time, it should work indistinctly with the two mice.
« Last Edit: 2016.May.19. 23:44:54 by gflorez »

Offline geco

  • EP addict
  • *
  • Posts: 5310
  • Country: hu
  • OS:
  • Linux Linux
  • Browser:
  • Firefox 45.0 Firefox 45.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #42 on: 2016.July.15. 23:04:44 »
Original Pasziansz game got mouse support by GFlorez, and the game has been made EXOS compatible and recognize Turbo machines by me :)
« Last Edit: 2016.July.17. 18:39:15 by geco »

Online gflorez

  • EP addict
  • *
  • Posts: 2539
  • Country: es
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 47.0 Firefox 47.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #43 on: 2016.July.16. 01:46:56 »
Thanks for the credits...

There was a Paszianz Rom, can you compile this final version to be resident?

I think that the Rom is basically only used as a recipient, as the game is ldir'd to 0100h to act just like the file version.

Or it was EDCW? I don't remember it now....
« Last Edit: 2016.July.16. 01:53:01 by gflorez »

Offline geco

  • EP addict
  • *
  • Posts: 5310
  • Country: hu
  • OS:
  • Linux / Sony Ericsson SK17iv Linux / Sony Ericsson SK17iv
  • Browser:
  • Safari 4.0 Safari 4.0
    • View Profile
Re: Pasziansz (Solitaire) from Hsoft, need EnterMice support
« Reply #44 on: 2016.July.16. 08:14:37 »
Thanks for the credits...

There was a Paszianz Rom, can you compile this final version to be resident?

I think that the Rom is basically only used as a recipient, as the game is ldir'd to 0100h to act just like the file version.

Or it was EDCW? I don't remember it now....
I think it was EDCW.