Enterprise Forever

:HUN => Hardver => Beviteli eszközök => Topic started by: szalai56 on 2015.June.21. 19:41:07

Title: EnterMice (egér és joy illesztő)
Post by: szalai56 on 2015.June.21. 19:41:07
Nem tudtam hova tenni, így ide tettem. Jól értelmezem  kellene jelentkezni (https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/) ?
Vagy eseteleg Zozo összefognád a magyar jelentkezőket. 2 db nekem kellene.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.June.22. 20:25:00
Szóval azoknak, akik nem követték az angol témát:
A lengyel srác a spanyol srác ösztönzése alapján tervezett egy új illesztőt, ami a BoxSoft féle megoldás továbbfejlesztése.
Itt látható, hogy kb hogyan fog kinézni. (https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/msg48007/#msg48007)
Mindkét joystickhoz csinál teljes értékű (azaz autofire kompatibilis) joy átalakítót, valamint PS/2 egér port. Beépített mikrokontroller alakítja át az egeret MSX módra, azaz a végeredmény hasonló lesz az eredeti NEOS egérhez.
A különbség az, hogy kihasználva a Controll port lehetőségeit, másik bemenetre lesz téve az egér, így egyszerre használható a joy és az egér, valamint nem őrülnek meg a külső joyt használó programok (Pl EPDOS :-) ) az egértől.
Az egér használható lesz joy módban is, ekkor átveszi a Joy1 helyét.

A komplett illesztő ára kb 36 euró lesz, most gyűjti a jelentkezéseket.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.June.22. 21:22:44
Vagy eseteleg Zozo összefognád a magyar jelentkezőket.
Gyűjthetem azokat, akik nem tudnak közvetlenül külföldiül bizniszelni :-)

- Zozo 2
- szalai56 2
Title: Re: EnterMice (egér és joy illesztő)
Post by: Tutus on 2015.June.22. 21:28:23
Gyűjthetem azokat, akik nem tudnak közvetlenül külföldiül bizniszelni :-)

- Zozo 2
- szalai56 2

Matusa 1 :ds_icon_cheesygrin:
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.June.22. 21:35:19
- Zozo 2
- szalai56 2
- Matusa 1
- Moldani 2
Title: Re: EnterMice (egér és joy illesztő)
Post by: Ep128 on 2015.June.22. 22:35:00
- Zozo 2
- szalai56 2
- Matusa 1
- Moldani 2

Ep128 1
Title: Re: EnterMice (egér és joy illesztő)
Post by: lgb on 2015.June.23. 08:53:59
LGB 1

Beirtam en is magam az angol topic-ba, hatha meg beleferek ...
Title: Re: EnterMice (egér és joy illesztő)
Post by: Z80System on 2015.June.23. 09:11:00
Én is beírtam magam az angol fórumba, de azt is bonyolíthatod a "magyar" csomagban, ha lesz belőle eredmeny, Zozo.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Trefe on 2015.June.25. 20:28:15
Bocsánat, de csak most értem haza a családdal a nyaralásból. Ha még lehet jelentkezni erre az illesztőre nekem kéne egy darab.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.June.25. 20:36:04
A első 20 db-os adag már elkelt, de akkor én beérem eggyel, és akkor még jut neked is.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szalai56 on 2015.June.25. 23:18:58
Természetesen ha valakinek nem jut, akkor nekem is elég 1db.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Trefe on 2015.June.26. 10:34:36
Köszönöm a felajánlott illesztőt. Persze, ha lesz következő megrendelhető adag, nekem akkor is jó lesz.
Title: Re: EnterMice (egér és joy illesztő)
Post by: sanyike on 2015.October.21. 11:36:52
Hűha, ezt csak most vettem észre...

Lehet ebből még rendelni?

_S
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.October.22. 15:09:06
Lehet ebből még rendelni?
Igen lehet, sőt kérdés is, hogy ki kér még a következő adagból!

Ha jól értem akkor eddig:
1x Trefe
1x sanyike

Az első tesztek alapján: nagyon szép finom egérmozgás, teszteltem hagyományos golyós, és optikai egérrel is. Működik akár 10MHz-es géppel is, az eredeti módosítás nélküli MOUSE.XR-el! (Az eredeti Neos egér már 6MHz-hez is túl lassú volt).
Természetesen működik a SymbOS is.

Itt látható (https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/msg49411/#msg49411) a beállítási lehetőségek, ill. programozáshoz a Controll port bemeneteinek használata.
Lehetséges üzemmódok:
-Boxsoft kompatibilis egér, az eredetihez képest extra, hogy a második gomb is elérhető
-EnterMice egér mód, ekkor a Keyboard K vezetéket használja egér bemenetnek, vagyis együtt használható a Keyboard J vezetéken lévő joystickkal, azaz így nem zavarodnak össze a külső joyt használó programok az egértől. Itt egy pici extra került a Boxsoft módba is, amíg nem érzékel egér lekérdezést, addig néma marad, szintén azért, hogy ne zavarja össze a joyos programokat.
-Joystick emulációs mód, itt 4 féle sebességből lehet választani

A joy átalakító részen lehetséges akár 3 gombos joystickokat is bekötni

Az egér akár menet közben is csatlakoztatható, ezt még a PC se tudja PS/2 porton :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: endi on 2015.October.22. 15:40:12
vajon annak idején mennyibe került volna egy ilyen?
exdos is jó drága volt :( de az azért viszonylag sok embernek volt (még nekem is)
egér esetén ügye a hiányzó programok nehezítették volna az elterjedését sajnos
Title: Re: EnterMice (egér és joy illesztő)
Post by: sanyike on 2015.October.22. 21:22:44

Ha jól értem akkor eddig:


Igen, szeretnék egyet.

Kérlek majd írj a vásárlás részleteiről, utalás(?) stb...
Köszönöm!
Title: Re: EnterMice (egér és joy illesztő)
Post by: Ep128 on 2015.October.22. 23:26:03
Erre nem feliratkoztunk már 1x Zozo...? (Ha igen, akkor erről szólt a legutóbbi privát üzi itt, ha nem, akkor persze, hogy kell! :-) )

Igen lehet, sőt kérdés is, hogy ki kér még a következő adagból!

Ha jól értem akkor eddig:
1x Trefe
1x sanyike

Az első tesztek alapján: nagyon szép finom egérmozgás, teszteltem hagyományos golyós, és optikai egérrel is. Működik akár 10MHz-es géppel is, az eredeti módosítás nélküli MOUSE.XR-el! (Az eredeti Neos egér már 6MHz-hez is túl lassú volt).
Természetesen működik a SymbOS is.

Itt látható (https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/msg49411/#msg49411) a beállítási lehetőségek, ill. programozáshoz a Controll port bemeneteinek használata.
Lehetséges üzemmódok:
-Boxsoft kompatibilis egér, az eredetihez képest extra, hogy a második gomb is elérhető
-EnterMice egér mód, ekkor a Keyboard K vezetéket használja egér bemenetnek, vagyis együtt használható a Keyboard J vezetéken lévő joystickkal, azaz így nem zavarodnak össze a külső joyt használó programok az egértől. Itt egy pici extra került a Boxsoft módba is, amíg nem érzékel egér lekérdezést, addig néma marad, szintén azért, hogy ne zavarja össze a joyos programokat.
-Joystick emulációs mód, itt 4 féle sebességből lehet választani

A joy átalakító részen lehetséges akár 3 gombos joystickokat is bekötni

Az egér akár menet közben is csatlakoztatható, ezt még a PC se tudja PS/2 porton :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.October.23. 03:05:07
Erre nem feliratkoztunk már 1x Zozo...?
Az az első adag. Most már az a kérdés, hogy ki kér még.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Trefe on 2015.October.23. 14:28:30
Igen! Trefének 1db a következő adagból megfelel. Az mikor várható? Sanyike hozzászólásához csatlakoznék én is, mármint a fizetés milyen módon történne?
Title: Re: EnterMice (egér és joy illesztő)
Post by: szalai56 on 2015.November.21. 22:18:59
Egy kis segítség kellene. pear fórumtárstól kaptam egy mailt. Mit kell most csinálnom? Nem közösen intézzük?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Z80System on 2015.November.21. 22:40:10
Quote
Egy kis segítség kellene. pear fórumtárstól kaptam egy mailt. Mit kell most csinálnom? Nem közösen intézzük?

Hát a te leveledet nem olvastam, amit én kaptam abban az állt, hogy elkészültnek ítéltetett az EnterMice, kellene neki a megadott emilcímre elküldjem a szállítási címemet, valamint a paypal -os tranzakciós azonosítót, és persze ha valamiért valakinek nem jó a paypal -os verzió, akkor szintén emilben vegye fel vele a kapcsolatot gondolom valami egyéb módszer megbeszélésére.

Én megléptem ezeket, valamiért azt hittem, most nem szerveződik ilyen egységesesdi ...

Még annyi volt a levélben, hogy csomagolás szempontjából négyesével tud küldeni, és aki akarja azt is irja meg a levélben, hogy kinek a csomagjába rakja bele az övét, kik vannak összevonva.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szalai56 on 2015.November.22. 18:23:15
Zozo
Tudsz ebben segíteni? Nekem 2 db kellene, de én nem tudok utalni, meg hü@e vagyok az egészhez. Esetleg valakivel összeállni? Bármi megoldás érdekelne.
Title: Re: EnterMice (egér és joy illesztő)
Post by: lgb on 2015.November.22. 18:31:01
Zozo
Tudsz ebben segíteni? Nekem 2 db kellene, de én nem tudok utalni, meg hü@e vagyok az egészhez. Esetleg valakivel összeállni? Bármi megoldás érdekelne.

Csatlakoznek az elottem szolohoz :) En egyet kertem, meg is kaptam a privat uzentet, hogy mehet a buli, de paypal meg minden, olyanrol mar hallottam ugyan, de tobbet nemigen tudok rola ... :oops:
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.November.23. 14:13:10
Az enyéim már rég megérkeztek (mint első tesztpéldányok). A többi rendelő között nincs akivel össze tudnátok állni? Ha jól tudom Ep128 kolléga Tutussal társul.
Ha nincs más akkor segíthetek.

de paypal meg minden, olyanrol mar hallottam ugyan, de tobbet nemigen tudok rola ... :oops:
21. században? :-) :oops:
Title: Re: EnterMice (egér és joy illesztő)
Post by: ergoGnomik on 2015.November.23. 14:35:03
Csatlakozom Zozohoz. Nem bonyi az, csak foglalkozni kell vele. Én már nem is emlékszem hogy mikor csináltam meg a PayPal fiókomat. De ha nem tetszik, valószínűleg lehet banki átutalással is csinálni, és még külön deviza (valuta? - sosem tudom melyik melyik) számla sem kell hozzá.
Title: Re: EnterMice (egér és joy illesztő)
Post by: lgb on 2015.November.23. 14:46:12
Igen, de van egy masik vonzata is a fizetesen kivul: lehet olcsobb postakoltseg is, ha nem egyesevel postazza el a jelentkezoknek. Ha jol remlik, irta is, hogy valami 4-es csomagokrol lenne szo.
Title: Re: EnterMice (egér és joy illesztő)
Post by: lgb on 2015.November.23. 14:51:41
Az enyéim már rég megérkeztek (mint első tesztpéldányok). A többi rendelő között nincs akivel össze tudnátok állni? Ha jól tudom Ep128 kolléga Tutussal társul.
Ha nincs más akkor segíthetek.
21. században? :-) :oops:

Jol van na, neten max pizzat rendeltem eddig, de azt sem ott fizettem ki :)
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2015.November.23. 14:52:29
I paid once a bank transfer from Polish to Hungary.
Personally I do not recommend it.
The total commission of banks (banks charge a commission on each side) was over 50%.
PayPal is much cheaper.
---
Egyszer bankon keresztül fizettem Lengyelországból Magyarországra.
Személyesen én nem ajánlom.
A teljes banki jutalék (mindkét féltől levonja a bank) több volt, mint 50%.
A PayPal sokkal olcsóbb.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2015.November.23. 15:51:39
Közben Moldani is jelentkezett hasonló problémával :-)
Az akkor eddig (Szalai, Lgb, Moldani) 5 lenne, ha jól számolom.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szalai56 on 2015.November.23. 16:57:06
Bocsi, de én elvben megoldottam (kerestem egy másik fórumban egy paypal utalót, és azon keresztül elutaltam a pénzt. Lehet már pear meg is kapta)
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2015.November.23. 17:45:58
Szállítási státusz (https://enterpriseforever.com/hardware/entermice-joy-ps2-mouse-interface/msg51009/#msg51009)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Jolaes76 on 2016.February.09. 18:33:48
Akit érdekel, vegyen bátran, még van pár darab a gyártónál :) én főleg a joystick port plusz Sega Twister miatt vettem, arra a célra is tökéletes.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Lacika on 2016.November.20. 16:58:10
Ilyen fórum is van? Akkor ide írom...
Egyelőre ennyire (http://ep128.hu/Ep_Hardware/Ep_EnterMice.htm) sikerült rájönnöm. Tetszik egyébként! :ds_icon_cheesygrin: HP-ben egy rajzprogram nem is lenne botorság! A következő Enterpress-ben kellene majd hibaigazítás :oops: De már wikin is rossz a példaprogram...
A Diagonal correction micsoda? Tudja valaki?
A botkormányon hány tűzgombot kezel az illesztő? Valahol kettőt, valahol hármat ír.
Title: Re: EnterMice (egér és joy illesztő)
Post by: ergoGnomik on 2016.November.20. 17:29:26
Ilyen fórum is van? Akkor ide írom...
Egyelőre ennyire (http://ep128.hu/Ep_Hardware/Ep_EnterMice.htm) sikerült rájönnöm. Tetszik egyébként! :ds_icon_cheesygrin: HP-ben egy rajzprogram nem is lenne botorság! A következő Enterpress-ben kellene majd hibaigazítás :oops: De már wikin is rossz a példaprogram...
A Diagonal correction micsoda? Tudja valaki?
A botkormányon hány tűzgombot kezel az illesztő? Valahol kettőt, valahol hármat ír.
A lényegi részeket nem érintve az alábbiakat vettem észre:
Title: Re: EnterMice (egér és joy illesztő)
Post by: ergoGnomik on 2016.November.20. 17:45:33
Folytatom:
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2016.November.20. 18:07:16
hagyományos golyós, és optikai egérrel helyett talán lehetne mechanikus és optikai egérrel
Azt mindenki golyósnak hívja, én még az életben nem hallottam mechanikusnak nevezni :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Lacika on 2016.November.20. 18:23:48
Azt mindenki golyósnak hívja, én még az életben nem hallottam mechanikusnak nevezni :-)

Azért mert az nem is mechanikus... Hivatalosan egyébként optomechanikus egér.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2016.November.20. 21:03:35
Kérjük, tud valaki lefordítani a EnteMice wikioldalát (http://wiki.enterpriseforever.com/index.php/EnterMice_(Magyar)) magyar?

------------------------

Please, can somebody translate the EnteMice Wiki page (http://wiki.enterpriseforever.com/index.php/EnterMice_(Magyar)) to Hungarian?
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2016.November.20. 22:15:23
Please, can somebody translate the EnteMice Wiki page (http://wiki.enterpriseforever.com/index.php/EnterMice_(Magyar)) to Hungarian?
I sometimes work on it and type some sentences. But it is too long to finish.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2016.November.20. 22:29:00
Van az általam javasolt, hogy lefordítani a wiki csoportban, mint amit ma a múzeum számára.

Kösz

----------------

Is for that I proposed you to translate the wiki in group, like you did today with the museum page.

Thanks.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2016.November.20. 23:53:27
Is for that I proposed you to translate the wiki in group, like you did today with the museum page.
What do you mean?
Of course, the text is translated in the Wiki. What museum page you mean?
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2016.November.21. 00:44:53
Úgy értem, a beszélgetés a Magyar szöveg http://ep128.hu/Ep_Hardware/Ep_EnterMice.htm

Néha a magyarok hívja a ep128.hu weboldal "Múzeum". Valóban az.

------------------------

I mean your discussion about the Magyar text on http://ep128.hu/Ep_Hardware/Ep_EnterMice.htm

Sometimes you the Hungarians call the ep128.hu web page "the Museum". Indeed it is.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2016.November.21. 15:55:34
I proposed you to translate the wiki in group, like you did today with the museum page.
I didn't translate the museum page.
You mean we should work in groups? So, more people share the work with each other?
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2016.November.21. 16:21:04
Igen, így van, vagy egy másik szál egy bekezdés kifejezés, majd mindenki együttműködik, hogy nem a legjobb fordítást.

Csakúgy, mint egy játék. A fordítást lehet tölteni csak nappal.

Akkor a magyarok hasonló játék kitalálós játék Enterprise grafika.

---------------------------------------

Yes, bringing here or to another thread a paragraph or phrase, then everybody collaborating to do the best translation.

Just like a game. The translation can be completed on only days.

You the Hungarians have a similar game guessing Enterprise game graphics.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2016.November.21. 16:33:44
Akkor javaslom, egy bekezdés kifejezés, akkor a legjobb játékos fordító kap néhány pontot, amelyek hozzá a pontszámot, míg a végén a szöveget. A győztes az árat, hogy neve a Wiki hitelek ...

----------------------------------

You can propose a paragraph or phrase, then the best player-translator gets some points that are added to his score, until the end of the text. The winner gets the price to have its name on the Wiki credits...
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2018.April.20. 10:22:56
hello

ha régi játékba (pl. Ledmmings) akarok egérvezérlést belerakni, akkor mire kell figyelni?

tegyük fel, hogy meg van az eredeti jpy olvasó rutin, látni, hogy hova ugrik, ha balra nyomom, hova, ha jobbra stb.

Namost, az egérnél ugye relatív elmozdulást kapok. Szóval mire kell figyelni, hogy jól működjön? Itt arra gondolok, hogy ha nagyon leegyszerűsítem a dolgokat, akkor marad az egész olyan, mint joy módban az entermice (1,2 DIP OFF)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2018.April.20. 10:32:42
Tovább vissza kéne fejteni az irányító rutint, egészen addig amíg az egérmutató poziciójának módosítása történik.
Vagyis ne jobbra-balra legyen, hanem a kapott elmozdulás alapján módosítás.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.05. 15:56:29
próbálgatom a MOUSE.XR féle MOUSE: eszközt

az egérkurzor pozicionálása nem igazán működik, próbáltam a 184-187 változók írásával:
Code: [Select]
        MousePointerOff
        xset 185, 0
        xset 184, 72
        xset 187, 0
        xset 186, 232
        MousePointerOn

ehelyett 144, 500 környékére ugrik, a status sorban ki van iratva a koordináta, az Y nem is frissül addig, amíg hozzá nem érek az egérhez.

Mi a trükk?

Az xset egy makró:
Code: [Select]
            MACRO xset variable, value
            ld   bc, 256 + variable
            ld   d, value
            exos 16
            ENDM

Plusz kérdés:
be lehet-e valahogy állítani, hogy mi legyen az a tartomány, ahol az egérkurzor mozoghat? (tehát pl. ne lehessen kihúzni a képernyő szélére).
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.05. 21:36:16
Látom, a változó helyesen van beállítva, de nem a valós koordináták. Megpróbálom hamarosan kijavítani az illesztőprogramot.

------

I see, the variable is set correctly but not the real coordinates. I'll try to fix the driver soon.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.06. 12:22:47
előbb, vagy utóbb, de majd elkészül :-)

Apukám kedvenc játéka volt PC-n, anno a Computer Panoráma lemezmellékletén volt (valahol meg van még a lemez is)

I'll finish it sooner or later... :-)

This was my father's favourite game on PC, it was on a disk attachment of a Hungarian PC magazine.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.January.06. 12:58:47
előbb, vagy utóbb, de majd elkészül :-)
Wow, ez majdnem olyan, mint az Orient Express, csak más.
Azért nem lesz minden piros benne? Endi már biztos akarná mondani a színátmeneteket.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.06. 13:07:05
Azért nem lesz minden piros benne? Endi már biztos akarná mondani a színátmeneteket.
max. dither-rel lehetne megoldani, 4 színű palettát használok, fekete, kék, piros és fehér.
Title: Re: EnterMice (egér és joy illesztő)
Post by: geco on 2019.January.06. 14:54:16
Jól néz ki :)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.09. 17:48:38
Alakul...
Most jön a folyó víz logikája... :-)

A LEVEL és a SCORE pontok még csak statikus grafika, a "Score Needed" már változóból jön, a "Clock" is szépen számol vissza 1 másodpercenként (még nem történik semmi, ha lejár)
Title: Re: EnterMice (egér és joy illesztő)
Post by: endi on 2019.January.09. 18:40:45
nocsak, tök jó!
de legyen raszter színezés is :)
vagy valami graf extra effekt!
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.January.09. 19:50:25
vagy valami graf extra effekt!
Meg sztereó hangeffektek, több csatornán, gyűrűmodulációval, meg amivel csak lehet! :D
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.10. 10:27:23
Meg tudja tesztelni ezt a fix egér meghajtót?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.10. 11:11:43
Meg tudja tesztelni ezt a fix egér meghajtót?
The pointer still jumps to the same wrong coordinates... (x = 144 instead of 72)
The pointer should be at the center of the bottom brick icon on the left side, in the black box
And it is not deleted, if I move the mouse, so, two pointers will be on the screen.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.10. 12:00:46
Ok, I will look for it. On my actual configuration it works correctly.

Yesterday I had the same duplicate pointer error on my house's computer, but can't replicate it now.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.12. 02:01:29
Mouse cursor positioning doesn't really work, I tried writing 184-187 variables:

instead, it jumps to the area of ​​144,500, the coordinate in the status queue is written down, Y is not updated until I reach the mouse.

can I somehow set the range where the mouse cursor can move? (eg it cannot be pulled out to the edge of the screen).

I must clarify some facts about the Mouse driver.

It is a piece of code inherited from the early Enterprise era, probably with a lot of errors, then modified by a lot of coders before it arrived to me.

It was just the necessity what make me try to fix the driver to work with the EnterMice adapter. I am not a coder but I tried  to learn. While merging three versions of the driver probably I have introduced some errors..., and this is one of them.

Yes, the cursor positioning didn't work, although in this last version it seems to be fixed. Only I must replicate the two pointers error to finish it.

"Wrong" coordinates are another theme. Internal driver coordinates work at real pixels, not like EXOS graphics coordinates. It is not my fault, the coders at Boxsoft made the driver as it is. Then, in your cursor positioning, the pointer is drawn at the correct point, but the system "X" coordinate is exactly double. Not a big problem,  you only have to divide by two to know the real pixel position. But this driver is made for all the graphic modes(and text modes, introduced by me), so better you must know how to deal with the mouse driver coordinates before to write your Basic(or other language) program.

"Y" mouse driver coordinates have the same problem, but to make things worse they start at the left upper corner, contrary to the system graphics coordinates. Again, not a great problem, you only have to subtract the "Y" coordinate from the total pixel height of the video page.

A mouse channel always has to be associated to a video page channel, and its dimensions are the limits to the pointer movement. One of my last modifications to the driver was that any modification to the dimensions of the video page would invalidate the mouse channel(I can't close a channel inside an interruption).

Then, you can't position the pointer outside of the video page coordinates, and so, a part of it is shown at the left side when it touches the right side. The upper tip of the harrow marks the pixel coordinates.

On the other side, the driver is very well written. It doesn't care the dimensions of the video page, it works even on a 1x1 character window.... And although only one mouse channel can be opened, you can alternate the use of the mouse between several video pages very fast, as it is done on the Paintbox program.
I am willing to answer all your questions.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.13. 10:47:14
Hi,
no problem, nobody blames you about of the cursor positioning problem :-)
I guessed the error casue similar as you wrote. It seems, some internal variables are not updated, when exos variable for positioning is set.
Currently I am working other part of the game, later I'll try to fix the issue, thanks for the source code. In my opinion, "hacking" is not desirable, it should be works with EXOS coordinates, in any graphics mode.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.13. 22:36:11
Think that the mouse driver itself is a hack that writes directly on the memory of the video page whose channel is associated to the mouse channel.

I have already fixed the update of all the mouse driver coordinates when written, on my last driver fix (https://enterpriseforever.com/hardver/entermice-eger-es-joy-illeszto/msg73955/#msg73955), you can see it at loc_C073 on :

Before:
Code: [Select]
loc_C073: ; write  
ld a, d
ld (hl), a

loc_C075: ;
ld c, 0
ld d, a
xor a
ret

Fixed:
Code: [Select]
loc_C073: ; write  
push hl
push de
call sub_C4F0; erase mouse pointer
pop de
pop hl

ld a, d
ld (hl), a               ; here the variable is written

ld bc, (X_LOW) ; EXOS Variable 184 & 185  ;Here the value is made effective
ld (X1), bc
ld bc, (Y_LOW) ; EXOS Variable 186 & 187
ld (Y1), bc
push af
call sub_C40B; draw mouse pointer
                pop af

loc_C075: ;
ld c, 0
ld d, a
xor a
ret

But probably I have introduced the double pointer error.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.30. 14:25:11
Tegnap vettem egy PS/2-es optikai egeret, Genius DX-110

A billentyűkre reagál az EP, a mozgatásra nem. Mi a hiba? Rossz az egér, vagy az egér olyan jeleket küld, amit nem ismer fel a driver?

A régi, golyós Genius egérrel rendben működik az EP.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2019.January.30. 14:31:23
A klubba is valami optikai Genius egeret (https://enterpriseforever.com/ep-klub/kovetkezo-klubnap/?action=dlattach;attach=22604;image) vittem.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.January.30. 15:07:09
Rossz az egér, vagy az egér olyan jeleket küld, amit nem ismer fel a driver?
PC-n működik az egér, csak EP-n nem?
Lehet gyári hibás is, minden előfordulhat.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.January.30. 16:11:44
Míg a Pear az EnterMice-t tervezte, nagyszámú PS/2 eszközt teszteltek. Egerek és tapintható felületek. Az összes működött, kivéve az egyik típusú Microsoft egeret, amely nem támogatja a forró dugót, csak akkor, ha az Enterprise kikapcsolt. Kérdezd meg őt.

--------------------

While Pear was designing the interface, a large number of PS/2 devices were tested. Mice and tactile surfaces. All worked except one type of Microsoft mouse, which did not support hot plug, only with the Enterprise switched off. You can ask him.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.30. 18:11:06
PC-n működik az egér, csak EP-n nem?
Lehet gyári hibás is, minden előfordulhat.
Itthoni gépen csak egy PS/2 port van, abban meg a billentyűzet... Holnap kipróbálom a melóhelyen.
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.January.31. 05:57:46
Ha van egy egérmodell, amellyel az EnterMice nem működik, akkor tesztelhetem, hol van a probléma.
Természetesen, ha megkapom ezt az egérmodellt.
-----
If there is a mouse model with which EnterMice does not work, then I can test where the problem is.
Of course, if I can get this model of the mouse.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.31. 10:41:04
Ha van egy egérmodell, amellyel az EnterMice nem működik, akkor tesztelhetem, hol van a probléma.
Természetesen, ha megkapom ezt az egérmodellt.
-----
If there is a mouse model with which EnterMice does not work, then I can test where the problem is.
Of course, if I can get this model of the mouse.

Hi,
this mouse works on PC, but not on the EnterMice, only the buttons. I don't really like to send it, because posting it might me more expensive than the mouse (mouse was 3€). I'll send money to you via PayPal to buy the mouse, I am sure it is available in Poland. (Genius DX-110 PS/2 version).

But first I'll do another test with EP128.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.January.31. 10:46:05
egyébként nagyon nyomorult kis gagyi egér... :-(

kicsi, nem lehet rátámasztani a tenyeremet, túl könnyű, a vezetéke simán elhúzza az asztalon...
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.January.31. 12:55:56
I'll send money to you via PayPal to buy the mouse
No kidding :D

, I am sure it is available in Poland. (Genius DX-110 PS/2 version).
If I find one, I will buy it out of curiosity.

EDIT: The mouse bought :)
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.January.31. 20:16:39
EDIT: The mouse bought :)
Does your mouse not work with the Enterprise but works with the PC? Is the situation the same as with Povi?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.January.31. 23:32:40
Az enyémek is ott voltak a klubban, mind a kettő optikai és gyönyörűen működnek a géppel.
Az egyik egy GENIUS NetScroll 120 optikai egér.
A másik egy LogiTech TrackMan Wheel trackball. Ráadásul ez USB-és és USB-PS/2 adapterrel kell rádugni.

[attach=1]
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.February.01. 06:12:58
Does your mouse not work with the Enterprise but works with the PC? Is the situation the same as with Povi?
I'll let you know in a few days when I get it in my hand.
I am afraid, however, that it will not be exactly the same model inside and will work.
-----
Néhány nap múlva értesítem, ha megkapom a kezemben.
Attól tartok azonban, hogy nem lesz pontosan ugyanaz a modell, és működni fog.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.February.01. 09:54:07
I'll let you know in a few days when I get it in my hand.
I am afraid, however, that it will not be exactly the same model inside and will work.

I've tryed the mouse yesterday evening again, and it still not work, only the buttons! :-)
If you bought DX-110, then it should be the same model :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.February.01. 10:24:37
I've tryed the mouse yesterday evening again, and it still not work, only the buttons! :-)
Have the other mouses been working since that time? It might be the breakdown of EnterMice.

A többi egér működik az EnterMice-szal? Még az is lehet, hogy az EnterMice hibásodott meg.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2019.February.01. 10:28:23
A többi egér működik az EnterMice-szal? Még az is lehet, hogy az EnterMice hibásodott meg.
Ezzel kezdte Povi:
A régi, golyós Genius egérrel rendben működik az EP.
Povi write at earlier:
With another older mouse the Entermice working.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.February.01. 11:18:28
Have the other mouses been working since that time? It might be the breakdown of EnterMice.
Yes, the old Genius mouse (with ball, not optical) works, I've also tried it yesterday evening.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.February.01. 11:43:29
Have you tried with another surface-mat? for example, on top of an A4 paper sheet it must work correctly.

Some mice optical sensors fail on shiny textures.

If the buttons work, there is data transference.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.February.01. 13:26:47
Have you tried with another surface-mat? for example, on top of an A4 paper sheet it must work correctly.
Some mice optical sensors fail on shiny textures.
Yes, tried also on white A/4 paper, on hard cover of dissoier, and also on carpet :-) None of them was working. Also tried just covering the sensor with my finger, and moving it :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.07. 22:31:43
EnterMice by pear

[attach=1]

[attach=2]

[attach=3]
Title: Re: EnterMice (egér és joy illesztő)
Post by: Ep128 on 2019.March.08. 00:16:17
Nagyon tetszik! :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.March.08. 06:10:06
Sajnálom, hogy nem próbáltam kisebb kondenzátorokat kapni.
A burkolatból kiálló, csúnyanak tűnnek :(
----
I'm beginning to regret that I did not try to get smaller capacitors.
Protruding from the casing, they look nasty :(
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.08. 09:05:45
Sajnálom, hogy nem próbáltam kisebb kondenzátorokat kapni.
A burkolatból kiálló, csúnyanak tűnnek :(
----
I'm beginning to regret that I did not try to get smaller capacitors.
Protruding from the casing, they look nasty :(

Hosszabb lábakkal vízszintesen is elférnének...

[attach=1]

They could fit horizontally with longer legs

Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.08. 11:23:21
Az EnterMice-ékszert nem hozta létre egy dobozhoz, szokatlan kapcsolatfelvétel miatt. De a RSCluster csodát hozott, körülötte 3d-s műanyagban.

-------

Your EnterMice jewel was not created to have a case, due to its unusual way of connection.  But RSCluster has made a miracle surrounding it in 3d plastic.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.08. 12:25:09
EnterMice case with label upgrade... :)

[attach=1]
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.25. 21:28:52
elkezdtem írni az egérkezelést a turbó amőbához (http://www.ep128.hu/Ep_Games/Leiras/Turbo_Amoeba.htm), de elakadtam

a joy olvasó rutin helyére tettem be az István féle egér olvasó rutint.

a joy olvasás a 08d1 címen kezdődik, előtte egy F1 bill. vizsgálat van, a 08c1 címen.

szóval a 08d1 címen kezdődő rutint írom át

maga a 08c1 rutin (F1 és joy vizsgálat) a megszakítási rutinból van hívva, a 0x38 címen JP 0607 van.

ez így kezdődik:
Code: [Select]
l0607:  di     
        push    af
l0609:  ld      a,30h       ; 00110000
        out     (0b4h),a
        xor     a
        ld      (05c5h),a
        ei     
        push    bc
        push    de
        push    hl
        push    ix
        push    iy
        ex      af,af'
        push    af
        call    l064f
        ld      a,00h
        out     (81h),a
        call    l08c1           ; bill. / joy olvasás

ami furcsa nekem:

miért van ott az EI a megszakítás rutin elején? ez szerintem gondot okozhat

mit csinált a 0b4h portra írt 030h?

az a gyanús nekem, hogy így nem 50Hz-enként hívódik meg az egér olvasó rutin, az elejét átírtam így:
Code: [Select]
                in   a, (0b4h)
                and  0xaa
                ld   b, a
                neg
                and  b
                bit  5, a
                ret  z
és ezután jön az István féle rutin, az LD C,4 utasítással (az elején lévő részt cseréltem ki a fenti sorokra

ebben az esetben az A 5 bitje mindig 0 marad, szóval soha nem ugrik rá az egérkezelő rutinra a kód

ha kiveszem, akkor működik, egészen addig, míg az egér gombokat is le akarom olvasni
magyarul, ha bent hagyom ezeket a sorokat:
Code: [Select]
                OUT (0B5H),A    ;A = 0
                IN A,(0B6H)
                CPL
                AND 06H         ;bit 0 = left button,
                RRA             ;bit 1 = right button

akkor már összevissza fagy...

mi lehet a gond?
ha jól értem, fontos a pontos időzítés, és sejtésem szerint az lehet a gond, hogy nem pont 50Hz-enként hívódik a rutin?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.25. 21:43:53
most jelenleg ezzel a rutinnal működik, lehet mozgatni a kurzort az egérrel:
Code: [Select]
                org     08d1h

;                di
;                in   a, (0b4h)
;                and  0xaa
;                ld   b, a
;                neg
;                and  b
;                bit  5, a
;                ret  z

;                DI
;VSYNCWAIT1:     IN A,(0B4H)
;                AND 10H
;                JR Z,VSYNCWAIT1
;VSYNCWAIT2:     IN A,(0B4H)
;                AND 10H
;                JR NZ,VSYNCWAIT2

                LD C,4
READ_LOOP_1:    LD H,L
                LD L,D
                LD D,E
                LD E,01H
                LD A,02H        ;RTS low
READ_LOOP_2:    OUT (0B7H),A
                LD B,17         ;25.6 us at 10 MHz without wait states
M_WAIT_LOOP:    DJNZ M_WAIT_LOOP
                LD B,4
READ_LOOP_3:    LD A,B
                OUT (0B5H),A
                IN A,(0B6H)
                RRA             ;data is read from K column
                RRA
                RL E
                DJNZ READ_LOOP_3
                LD A,B          ;RTS high
                JR NC,READ_LOOP_2
                DEC C
                JR NZ,READ_LOOP_1
;                OUT (0B5H),A    ;A = 0
;                IN A,(0B6H)
;                CPL
;                AND 06H         ;bit 0 = left button,
;                RRA             ;bit 1 = right button

;                push af         ; save button state

                ld   b, h
                ld   c, l
                ld   hl, (015eh)
                ld   de, (0160h)
                xor  a
                ld   (01eeh), a     ; A = 0

                ld   a, b
                or   a
                jr   z, .l2         ; no horizontal movement
                jp   p, .l1
                neg
.l1:            ld   (09c1h), a
                ld   a, b
                or   a
                push bc
                call p, 09efh      ; left
                call m, 0a03h      ; right
                pop  bc

.l2:            ld   a, c
                or   a
                jr   z, .l4        ; no vertical movement
                jp   p, .l3
                neg
.l3:            ld   (09c1h), a
                ld   a, c
                or   a
                call m, 09d5h       ; down
                call p, 09bfh       ; up

.l4:            ld   (015ah), hl
                ld   (015ch), de

;                ei
;                pop  af
;                bit  0, a
;                jr   nz, 096ah
                ret

                end

de abban a pillanatban, hogy kikommnetelem az egérbill. figyelést, összeomlik
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.26. 01:59:01
Sorry, I write this from my phone, on English:

You must use SoftIrq to know if you are on the next 1/50 seq. , because EnterMice, like the MSX mouse protocol, begins its reading cycle every frame. Also, you can combine the internal and external joystick reading on the same loop with the mouse. 

If I remembet well I used a combined loop on Paszians:

https://enterpriseforever.com/programming/pasziansz-solitaire-from-hsoft-need-entermice-support/msg55531/#msg55531
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 05:55:20
Rájöttem, mi a hiba:
a joy olvasó rutinban el volt tárolva egy változó a 0930 címen, ahol most az egér rutin van. Ha beleraktam a bill. figyelő részt is, akkor már pont belógott erre a területre az egér olvasó rutin.

I realized the error:
there is a variable at 0930h address, which is used by the joy read routine, but now this area is occupied by the mouse reader routine, but the variable is still overwrtitten, but now there is a runable code.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 06:20:41
MŰKÖDIK!!!!   :smt026

IT WORKS!!!!   :smt026

Még igazi gépen tesztelni kell.

Must check on real hardware
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 11:16:53
István! A rutinod elején lévő pár sor:

Code: [Select]
VSYNCWAIT1:     IN A,(0B4H)
                AND 10H
                JR Z,VSYNCWAIT1
VSYNCWAIT2:     IN A,(0B4H)
                AND 10H
                JR NZ,VSYNCWAIT2

konkrétan mi célt szolgál? (sajnos nem ismerem a 0xb4 port lelkivilágát :oops: )

Én ezt most elhagytam, mert megszakítási rutinból hívom az egérkezelő rutint. Vagy ebben az esetben is benne kéne hagyni?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 15:17:09
egeres verzió letölthető (csak egeret kezel, joy-t nem, mert a joy rutin lett felülírva)

exos-kompatibilis lett

legyen-e választható, hogy joy / egér? (vagy keressek üres helyet a RAM-ban, és legyen egyszerre mindkettő?)

a sötétzöldet világosabbra vettem, hogy ne folyjon ki az ember szeme

a zip tartalmazza a módosításnak a forrását is
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.26. 15:20:19
konkrétan mi célt szolgál?

Várakozás video megszakításra.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 15:23:47
Várakozás video megszakításra.

de akkor ugye  jól értem, hogy arra nekem nincs most szükségem, ugye?
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.26. 15:24:14
Igen.
Title: Re: EnterMice (egér és joy illesztő)
Post by: szipucsu on 2019.March.26. 15:42:27
legyen-e választható, hogy joy / egér? (vagy keressek üres helyet a RAM-ban, és legyen egyszerre mindkettő?)
Szerintem legyen egyszerre mindkettő.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.26. 18:06:40
Szerintem legyen egyszerre mindkettő.
Megcsináltam. Ez akkor a véglegesnek tekinthető verzió.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.26. 19:47:43
Fantasztikus!




2 részletet látok a javításhoz ...:

A joystickok nagyon lassúak az egér vezérléséhez képest. Tudod szorozni a joystick növekmény pozícióját 2-rel?

A másik az, hogy nem működik 10MHz-en, elkezd mozogni, és végül lóg. Furcsa, mert az EnterMice alkalmazkodik.


---------------------------

Fantastic!




I see 2 details to polish...:

The joysticks are very slow compared to the mouse control. Can you multiply the joystick increment position by 2?

The other is, it doesn't work on 10MHz, it starts to move erratically and finally hangs. It is strange because EnterMice adapts itself.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.26. 20:49:32
MŰKÖDIK!!!!   :smt026

IT WORKS!!!!   :smt026

Még igazi gépen tesztelni kell.

Must check on real hardware

Sajnos igazi gépen 4Mhz és 7,12Mhz-en is ilyen csodás csíkok ugrálnak a képben...

[attach=1]
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.26. 21:05:33
Nem látom a csíkokat.

------

I don't see the stripes.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.27. 00:13:02
Nem látom a csíkokat.

------

I don't see the stripes.

Here you see the stripes

[attach=1]
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.27. 00:31:15
This could be the source of the stripes at the end of the LPT:
Code: [Select]
>3F0F60  EA 02 06 06 80 61 66 0D  :j....af.
>3F0F68  87 72 65 74 0D 6C 65 66  :.ret.lef
>3F0F70  FD 80 3F 00 75 73 68 80  :}.?.ush.
>3F0F78  61 66 0D 87 6C 64 80 62  :af..ld.b
>3F0F80  FE 00 06 3F 70 65 65 64  :~..?peed
>3F0F88  2B 31 29 0D 87 6F 72 80  :+1)..or.
>3F0F90  FF 00 3F 20 62 63 80 68  :..? bc.h
>3F0F98  6C 2C 62 63 0D 87 6A 72  :l,bc..jr
>3F0FA0  DA 03 06 06 6F 6C 65 66  :Z...olef
>3F0FA8  74 0D 87 6C 64 80 61 00  :t..ld.a.
It looks like unused parts are filled with garbage (bits of source code?), but more importantly margin settings like 06 06 might be problematic on real hardware, I suspect setting both to the same (0 width) is unstable at least on some revisions of the NICK chip. There were similar issues in the past with SNDPLAY (https://enterpriseforever.com/sound/hanglejatszo-fejlesztese/msg14087/#msg14087).
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 08:52:16
The joysticks are very slow compared to the mouse control. Can you multiply the joystick increment position by 2?

If you press and hold space / fire during joy movement, it will be 3 times faster (original design). But in this case it is possible to put stone on the board accidentally.

But anyway, it is possible to doubleing the speed of the cursor (one byte modification in the code (write 0x02 to 0x08d2, if you want to try it)), but I didn't want to modify the original behaviour.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 08:53:18
Sajnos igazi gépen 4Mhz és 7,12Mhz-en is ilyen csodás csíkok ugrálnak a képben...
Nálam igazi gépen nem volt csíkozás (csak 4MHz-en tudom tesztelni.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 08:59:31
The other is, it doesn't work on 10MHz, it starts to move erratically and finally hangs. It is strange because EnterMice adapts itself.
Is it also hangs in the original version? (downloadable from here (http://www.ep128.hu/Ep_Games/Prg/Turbo_Amoeba.rar))
May be I should check if the interrupt is really a video int.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.27. 09:05:16
Nálam igazi gépen nem volt csíkozás (csak 4MHz-en tudom tesztelni.

Nálam mindkét sebességen csíkozódik.( 4 és 7.12Mhz) Úgy látszik megint találtunk valami külömbséget hardwer és hardwer között.
Még annyit teszek, hogy leszedem az eredeti (nem egeres) változatot és azzal is kipróbálom.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 14:48:20
This could be the source of the stripes at the end of the LPT:
Akkor most rossz az LPT, és módosítani kell, vagy hw hiba, és nem lehet vele mit kezdeni?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Zozosoft on 2019.March.27. 14:52:29
Akkor most rossz az LPT, és módosítani kell, vagy hw hiba, és nem lehet vele mit kezdeni?
István leírása alapján rossz az LPT, de hw függő, hogy látszik-e a szemét.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 15:10:52
István leírása alapján rossz az LPT, de hw függő, hogy látszik-e a szemét.
Sajnos nem értek az LPT-hez, annyit látok, hogy az FC szegmensen van, 2-es lapra lapozva a 0x8000 címtől 0x8faf-ig(?), mert a vége már szemét), ezt találta meg István is.
Mire kéne javítani?
Ha jól sejtem, ez a rész állítja elő az LPT-t:
Code: [Select]
l046e:  ld      a,0fch
        out     (0b2h),a
        ld      bc, 246         ; 246 sor?
        ld      de, 0x8000
l0478:  push    bc
        ld      hl, l1133
        ld      bc, 16
        ldir   
        pop     bc
        dec     bc
        ld      a,b
        or      c
        jr      nz,l0478
        ld      hl, l1143
        ld      bc, 004fh
        ldir   
        ld      hl,11e2h
        ld      (04feh),hl
        ld      hl,82e2h
        ld      de,4000h
        ld      bc,11d2h
        call    l04bf
        ld      hl,1502h
        ld      (04feh),hl
        ld      hl,8002h
        ld      de,2000h
        ld      bc,l11da
        call    l04bf
        xor     a
        out     (82h),a
        or      40h
        out     (83h),a
        or      80h
        out     (83h),a
        ret
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.27. 15:11:23
A 06 06 margókat lenne célszerű módosítani, ha keretszínű LPB a cél, akkor a bal margó 3Fh lehetne, ami minden gépen működik.
Code: [Select]
>1143  EA 02 3F 06 00 00 00 00  :j.?.....
>114B  00 00 00 00 00 00 00 00  :........
>1153  FD 80 3F 00 00 00 00 00  :}.?.....
>115B  00 00 00 00 00 00 00 00  :........
>1163  FE 00 06 3F 00 00 00 00  :~..?....
>116B  00 00 00 00 00 00 00 00  :........
>1173  FF 00 3F 20 00 00 00 00  :..? ....
>117B  00 00 00 00 00 00 00 00  :........
>1183  DA 03 3F 06 00 00 00 00  :Z.?.....
>118B  00 00 00 00 00 00 00 2C  :.......,
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 15:30:08
a 80. 0x2C byte-ot is át kéne másolni? az LDIR csak 79 byte-ot másol
látom, kiütötted a szemetet :-)
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.27. 15:48:00
a 80. 0x2C byte-ot is át kéne másolni? az LDIR csak 79 byte-ot másol

Valószínűleg nincs jelentősége.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 15:55:39
Akkor itt van az LPT javított verzió, a zip-be beleraktam az eredeti COM fájlt is (AMOEBA.COM), de azt is a javított LPT-vel.

Judge, megnézed, hogy ezzel is csíkozódik?

LPT fixed verzion in the attachment, thaks help to Istvan
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.27. 20:52:10
Judge, megnézed, hogy ezzel is csíkozódik?

Sajnos most mindkét sebességen ez van:

[attach=1]

Az eredeti viszont teljesen rendben van:

[attach=2]
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 21:07:35
Sajnos most mindkét sebességen ez van:

Szép.

Az eredeti alatt mit értesz? Az ep128.hu-ról letöltött, vagy a zip-ben lévő AMOEBA.COM, amiben szintén javított az LPT?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.27. 21:18:49
Szép.

Az eredeti alatt mit értesz? Az ep128.hu-ról letöltött, vagy a zip-ben lévő AMOEBA.COM, amiben szintén javított az LPT?

Az ep128.hu-ról letöltött eredeti...feljebb jeleztem,hogy azzal is kipróbálom.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.27. 21:27:07
Az ep128.hu-ról letöltött eredeti...feljebb jeleztem,hogy azzal is kipróbálom.
és a zip-ben lévő AMOEBA.COM is csíkoz? (ebben nincs egérvezérlés, csak az LPT van javítva)
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.27. 21:38:50
és a zip-ben lévő AMOEBA.COM is csíkoz? (ebben nincs egérvezérlés, csak az LPT van javítva)

Sajnos az amoba.com-mal és az Amoeba.com-mal indítva is ugyanaz a torz kép van... :(
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.27. 23:56:10
Az ep128.hu változatban ugyanaz az LPT, mint az első egeresítettben, így nem igazán érthető, miért csak az utóbbi lesz csíkos. Esetleg NICK hiba is lehet.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 10:58:07
Egyébként az az érdekes, hogy a "lila csíkos" képen, ha jól megnézed,  ott van a rendes kép (4 színű grafikus módot használ az a rész), és csak a paletta csúszik el minden pixelsorban erre a lilás-zöldes cuccra.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 13:48:42
The other is, it doesn't work on 10MHz, it starts to move erratically and finally hangs. It is strange because EnterMice adapts itself.

Only the mouse movement hangs, or the game itself? If only the mouse, is it possibble to move the cursor with the joy after the hang?
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.28. 15:15:51
Sorry, I still had no time to test your newest version.

With the former version, once the EP put the on 10MHz, first the pointer moves erratically, then the whole computer hangs(painting vertical stripes, not so important, a regular hang...).

Probably you can emulate the error on the emulator.

If you want I can make you a video, but now I have little time.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 15:27:58
Sorry, I still had no time to test your newest version.

With the former version, once the EP put the on 10MHz, first the pointer moves erratically, then the whole computer hangs(painting vertical stripes, not so important, a regular hang...).

Probably you can emulate the error on the emulator.

If you want I can make you a video, but now I have little time.
I don't need video
What emulator settings needed for the proper 10MHz emulation? CPU, video, sound freq? Is the original (without mouse support) game also hangs at 10MHz?
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 19:23:48
Lemmings, első próbálkozás.
A lemmingek cselekedete még nem választható egérrel, helyette 0..9 billentyű.
Még nem EXOS kompatibilis.
Igazi gépen még nem teszteltem.

Lemmings, first try.
The action of the lemmings is still not yet selectable by mouse, you should use 0..9 keys.
Not yet EXOS compatible.
I did not tested it on real HW.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.28. 19:28:53
Now I have tested the three versions, the original without mouse, the one with mouse, and the one with mouse and fixed LPT. Let´s name them 0, 1 and 2.

On the 0 version I can switch between 4 and 10MHz and the game remains the same, the movement of the pointer is perfect on both frequencies. The only noticeable change is the pitch of the samples.

Both versions 1 and 2 behaviour the same, perfect movement on all controllers at 4MHz, but if I switch to 10MHz, the pointer jumps outside the grid and freezes on all controllers. Only if I don't touch the mouse, I can return to 4MHz and play normal. If I move the mouse the Enterprise hangs. But it only needs a warm reset to return to Basic.

Sorry, I don't remember the emulator settings for a 10MHz machine.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 19:40:17
Both versions 1 and 2 behaviour the same, perfect movement on all controllers at 4MHz, but if I switch to 10MHz, the pointer jumps outside the grid and freezes on all controllers. Only if I don't touch the mouse, I can return to 4MHz and play normal. If I move the mouse the Enterprise hangs. But it only needs a warm reset to return to Basic.


Could you test this program at 10MHz (and also in 4MHz)?
This for test, just writes the relative movement value to status line (so, move the mouse :-) )
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.28. 19:42:29
About Lemmings.  An awful ZX conversion.... not your fault...

The pointer moves correct on 4MHz, but it is slow and not pixel perfect. Probably also not your fault....

On 10MHz the mouse jumps to the right border, but it doesn't freeze. I can return to 4MHz and continue the game.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.March.28. 19:45:54
Az ep128.hu változatban ugyanaz az LPT, mint az első egeresítettben, így nem igazán érthető, miért csak az utóbbi lesz csíkos. Esetleg NICK hiba is lehet.

Lehet, de csak ennél a programnál? Más programoknál, játokoknál nemigen tapasztaltam ilyet.
Ha a két változatnál ugyanaz az LPT, akkor vajon mi válthatja ki a torzulást az egeresített változatban? :smt017
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 19:46:11
About Lemmings.  An awful ZX conversion.... not your fault...

haha! :-) Yes, I know, it is terribly ugly :-) With 4 colour mode would be much better :-) But the soundtrack is nice.

The pointer moves correct on 4MHz, but it is slow and not pixel perfect. Probably also not your fault....

About the speed: easy to increase, with doubleing the relative movement.
With keyboard control it starts with 1 pixel movement, but if you hold down the pressed key, it will move the cursor by 8 pixel.
What do you mean about "not pixel perfect"?

Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 19:47:36
Lehet, de csak ennél a programnál? Más programoknál, játokoknál nemigen tapasztaltam ilyet.
Ha a két változatnál ugyanaz az LPT, akkor vajon mi válthatja ki a torzulást az egeresített változatban? :smt017
jó kérdés, gyanús a gflorez féle 10MHz-es fagyás is.
Van egy sejtésem, majd kipróbálom.
Viszont feléd kérdés: ha nincs bedugva az EnterMice hw a gépbe, úgy mit csinál az egeres verzió nálad?
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.28. 19:53:43
I have tested your mouse2.com program.

On 4MHZ I move the mouse and the numbers change, if I stop the mouse the two numbers return to idle, 00 00. But on 10MHZ idle is 80 00, so the displacement is badly read and the pointer goes to Right.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.28. 20:02:08
Viszont feléd kérdés: ha nincs bedugva az EnterMice hw a gépbe, úgy mit csinál az egeres verzió nálad?

-----------

But you have a question: if you don't have EnterMice hw plugged in, what does the mouse version do for you?


It doesn't move with the internal joystick if there is no EnterMice, sorry.

But I have written a lot about why this happens and how to avoid it, I will search for it.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.March.28. 20:08:10
I have tested your mouse2.com program.

On 4MHZ I move the mouse and the numbers change, if I stop the mouse the two numbers return to idle, 00 00. But on 10MHZ idle is 80 00, so the displacement is badly read and the pointer goes to Right.

What about this (mouse3.com)?

This uses Bruce Tanner's routine, the mouse2.com uses IstvanV's routine

Source codes are also attached.
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.28. 23:58:21
Perhaps it just needs a longer wait at 10 MHz, so the LD B, 17 before M_WAIT_LOOP has to be increased? In theory, it waits 25.6 us between the B7h and the first B6h port access on a 10 MHz machine with no wait states, which is just above the minimum of 25 us from the documentation, but maybe in practice it is not enough.

What emulator settings needed for the proper 10MHz emulation? CPU, video, sound freq?

CPU frequency is 10000000, video is always 889846, sound should be 1250000. The latter requires ep128emu 2.0.11.2. However, the mouse emulation currently does not implement the timing of EnterMice, so it works regardless of the clock frequency or amount of wait between port accesses.

By the way, I have another mouse input routine that I added to Bricky Prise (https://enterpriseforever.com/enterprise-devcompo-1/enterprise-program-bricky-prise-1337/msg74919/#msg74919), this one is optimized for speed, rather than code size, and it automatically adjusts the amount of waiting depending on the Z80 clock frequency.
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.March.29. 17:35:29
I have tested your mouse2.com and mouse3.com programs. The two fail on 10MHz.

You have to reassure that the interrupt is made every 1/50 second, because these routines work on other programs on my 10MHz Enterprise without adjusting delays. A lot of tests where made when developing the EnterMice to achieve it.

I will read your code to try find the cause.
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.March.29. 18:59:31
Maybe for clarity.
After 25 μs from the change of the RTS signal state, the first nibble of the data is available.
However, the full read cycle of the data byte half on the EnterMice side is 39 μs. The remaining 14 μs is necessary to terminate the interrupt service.
In addition, the entire EnterMice firmware was optimized with the assumption of readings every 20 ms.
Reading the PS/2 data from the mouse can take up to 12.5 ms, so it will fail faster.
The start of reading the PS/2 data follows 1.5 ms after the end of the last data nibble reading.
For the whole to function correctly, for the read of all data from EnterMice it is at least full 6 ms. That's enough time. Especially at 10 MHz.
Code: ASM
  1.                                         ; tacts limit 56 @12MHz (112 @24MHz)
  2.                                         ; data exhibit before 26 (52) tacts
  3. msxservice:                             ; +4  interrupt system delay + jump
  4.         HDW_INT_START   1               ; +6  using set #1 of GPR
  5.         mov     a,r7                    ; +1  load nibble counter  
  6.         clr     c                       ; +1
  7.         rrc     a                       ; +1  count msxData ptr
  8.         orl     a,#msxData              ; +1
  9.         mov     r0,a                    ; +1  store msxData ptr
  10.         mov     a,@r0                   ; +1  load msxData
  11.         jnc     msx_set                 ; +2  if ptr is odd
  12.         swap    a                       ; +1  then swap nibble
  13. msx_set:
  14.         anl     a,#0F0h                 ; +1  leave high nibble
  15.         mov     r0,a                    ; +1
  16.         mov     a,outBuff               ; +1  combine data to out
  17.         anl     a,#00Fh                 ; +1  reset msxD0..msxD3
  18.         orl     a,r0                    ; +1  
  19.         mov     outPort,a               ; +1  exhibit data  @25 tacts
  20.         mov     outBuff,a               ; +1  store data
  21.         inc     r7                      ; +1  increment nibble counter
  22.         TMR_START       msxComTout      ; +6  set timeout (see em.equ)
  23.         HDW_INT_END                     ; +6 = 39 tacts
  24.  
Title: Re: EnterMice (egér és joy illesztő)
Post by: pear on 2019.March.29. 19:22:36
I had to remind myself where the limit of 56 μs came from.
I have measured the original BoxSoft interface timings with CPU clocked at 4 MHz.
The full data reading lasted 140 μs.
At 10 MHz it gave a limit of 56 μs, which I aimed at.
Finally I managed to get down to 39 μs, so with a lot of spare time.
Title: Re: EnterMice (egér és joy illesztő)
Post by: IstvanV on 2019.March.30. 11:11:14
In this routine (https://enterpriseforever.com/beviteli-eszkozok/entermice-eger-es-joy-illeszto/msg75220/#msg75220), reading 4 bits with READ_LOOP_3 takes well over 200 cycles, so the 14 us (or 39 us total) requirement should not be a problem in theory. According to a quick test with amoba.com, mouse input is polled at fairly regular 20 ms intervals.

I still suspect it is M_WAIT_LOOP that needs to be increased, because the idle state of 80 00 from mouse2.com suggests the error is in the first bit of the first nibble. Perhaps it needs to be longer than 25 us only the first time. In mouse3.com at 10 MHz, it seems to take 16-24 us from toggling RTS to reading port B6h, depending on whether DAVE wait states are enabled and if it is the first or second nibble.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Povi on 2019.April.02. 14:13:10
I found a bug, if not enough RAM is available, so it is fixed.

I did not fixed the mouse bug at 10MHz, I don't know, what the B register should be at M_WAIT_LOOP.

I attached the source, you can compile it with sjasm, the AMOEBA.COM (attached in previous zip) is needed for the compilation.

gflorez, can you do some tests with higher B values at 10MHz?
Title: Re: EnterMice (egér és joy illesztő)
Post by: gflorez on 2019.April.02. 15:33:47
I will try later.
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.April.05. 11:11:41
Viszont feléd kérdés: ha nincs bedugva az EnterMice hw a gépbe, úgy mit csinál az egeres verzió nálad?

Ha nincs a gépben az EnterMice, akkor is ugyanúgy csíkos az egeres változat.
Az eredeti viszont minden állapotban kifogástalan.









Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2019.April.05. 11:26:48
EnterMice burkolat címke. Ha valakinek szüksége lenne rá. :smt006

EnterMice cover label. If someone needs it.

[attachimg=1]

[attach=2]
Title: Re: EnterMice (egér és joy illesztő)
Post by: Judge on 2023.November.13. 22:57:19
A klubban megígértem...elkezdtem az EnterMice burkolat illesztését a géphez.
Ha kész lesz, nem lesznek problémák a csatlakozással. Pontosan a helyére találnak az élcsatlakozó érintkezői.
Átalakítom azt rést is rajta, ahova elvileg a printer csatlakozó menne, ha az EnterMice a gépben van, csakhogy az eredeti kialakításnál nem fér át rajta a printer dugó.

Itt egy prototípus:

[attach=1]