The manual of Master Paint indicates that the software is usable with a Joystick, but does not indicate which type.
The software is absolutely unusable on emulator using the keyboard because of the choice of keys to move the cursor, so I wanted to try the joystick, but I was not able to.
I've not tried my own version, just the oric.org disk version from Dom, and I validated that the Joystick did work fine with Cricutron using my Osdk joystick tester: https://osdk.org/index.php?page=article ... 17#title11
Any idea?
EDIT: Same problem with Lorigraph, both in the TAP and DSK versions...
EDIT2: I tested that Stormlord worked fine with both joyinterface = pase and joyinterface = ijk
Master Paint and Joystick
Re: Master Paint and Joystick
I will try and have a look. I have it on disk somewhere, and I think I have a tape.
I think Loriciels used the French joystick interface - but I'm not certain.
I think Loriciels used the French joystick interface - but I'm not certain.
Re: Master Paint and Joystick
Attached are DSK and TAP version of MasterPaint with working IJK joystick!
Some info:
The original joystick routine is at $6FA0. In the ZIP file you can find also the source code (drv.s) which uses my ijk-driver which is already available from github. The driver patches and hooks the joystick handling. The return status need to be placed at $80.
EDIT2: final version attached.
Some info:
The original joystick routine is at $6FA0. In the ZIP file you can find also the source code (drv.s) which uses my ijk-driver which is already available from github. The driver patches and hooks the joystick handling. The return status need to be placed at $80.
EDIT2: final version attached.
- Attachments
-
- master-paint-final.zip
- (91.9 KiB) Downloaded 167 times
Last edited by iss on Wed Nov 17, 2021 8:28 pm, edited 2 times in total.
Re: Master Paint and Joystick
Here you go, from the vaults....
https://www.oric.org/software/master_paint-127.html
It's in Stuff at the foot of the page.
https://www.oric.org/software/master_paint-127.html
It's in Stuff at the foot of the page.
Re: Master Paint and Joystick
@iss: Sure, you made it work (which is cool), but my question was mostly: Why did the original manual claim there was joystick support but it did not actually work when I tried with any of the support interfaces I tried in Oricutron?
Re: Master Paint and Joystick
I really wonder how you hack the software that way ..iss wrote: ↑Tue Nov 16, 2021 11:35 pm Some info:
The original joystick routine is at $6FA0. In the ZIP file you can find also the source code (drv.s) which uses my ijk-driver which is already available from github. The driver patches and hooks the joystick handling. The return status need to be placed at $80.
If I understand well, you managed to :
- identify where was the joystick routine and where it was called
- patch the binary to make it jump to your own joystick routine rather the embedded one
- repackage the software with your routine called instead of the original one
Re: Master Paint and Joystick
@Jonh: Thanks!
Well, the first post is updated with the final version DSK+TAP IJK and PASE compatible versions!
Here is the problem:
Code: Select all
6FA0 A9 40 LDA #$40 6FA0 A9 40 LDA #$40
6FA2 8D 0E 03 STA VIA_IER 6FA2 8D 0E 03 STA VIA_IER
6FA5 EA NOP 6FA5 EA NOP
6FA6 AD 01 03 LDA VIA_IORA 6FA6 AD 01 03 LDA VIA_IORA
6FA9 48 PHA 6FA9 48 PHA
6FAA AD 03 03 LDA VIA_DDRA 6FAA AD 03 03 LDA VIA_DDRA
6FAD 48 PHA 6FAD 48 PHA
6FAE A9 C0 LDA #$C0 6FAE A9 C0 LDA #$C0
6FB0 8D 03 03 STA VIA_DDRA 6FB0 8D 03 03 STA VIA_DDRA
==========================================
6FB3 A9 00 LDA #$00 <------ ???? 6FB3 8D 01 03 STA VIA_IORA
6FB5 8D 01 03 STA VIA_IORA 6FB6 AD 01 03 LDA VIA_IORA
6FB8 AD 01 03 LDA VIA_IORA 6FB9 29 3F AND #$3F
==========================================
6FBB 85 80 STA $80 6FBB 85 80 STA $80
6FBD 68 PLA 6FBD 68 PLA
6FBE 8D 03 03 STA VIA_DDRA 6FBE 8D 03 03 STA VIA_DDRA
6FC1 68 PLA 6FC1 68 PLA
6FC2 8D 01 03 STA VIA_IORA 6FC2 8D 01 03 STA VIA_IORA
6FC5 A9 C0 LDA #$C0 6FC5 A9 C0 LDA #$C0
6FC7 8D 0E 03 STA VIA_IER 6FC7 8D 0E 03 STA VIA_IER
6FCA 4C 74 76 JMP $7674 6FCA 4C 74 76 JMP $7674
On the right is the FIXED version with the sweet side-effect: you can use both (left and right) joysticks to draw
@Dbug: I hope your question is now answered
@jbperin: Sometimes you need just little bit luck (... and decades strolling in 'The Matrix' ).
Anyway, it was interesting challenge and the program really deserves the invested time.