Author Topic: JavaCPC Desktop available as BETA!  (Read 67022 times)

0 Members and 1 Guest are viewing this topic.

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.335
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3051
  • Likes Given: 5530
Re: JavaCPC Desktop available as BETA!
« Reply #50 on: 10:23, 21 April 10 »
Never had to use the resync button myself...

Btw, it'd be cool to have a tape counter instead of a tape led :D Or maybe (I haven't loaded a tape image so I don't know what it does) the tape led could alternate between two colours (or one colour with two different intensities) for the high and low sounds :)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #51 on: 11:08, 21 April 10 »
Btw, it'd be cool to have a tape counter instead of a tape led :D Or maybe (I haven't loaded a tape image so I don't know what it does) the tape led could alternate between two colours (or one colour with two different intensities) for the high and low sounds :)

- Tapedrive has a counter. Just open it.
- The emulator itself has a counter. See under the CPC-screen.

About the colours for the LED.
What do you think? If I would load a tape with 1 baud speed, you probably could notice 3 or 4 different colours.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline robcfg

  • Supporter
  • 6128 Plus
  • *
  • Posts: 2.263
  • Country: se
  • 8-Bit Technomancer
    • index.php?action=treasury
  • Liked: 1004
  • Likes Given: 2357
Re: JavaCPC Desktop available as BETA!
« Reply #52 on: 11:25, 21 April 10 »
Do the floppy leds work?


I tried yesterday the tape drive, but I tried some games and didn't see the leds flashing.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #53 on: 11:29, 21 April 10 »
Do the floppy leds work?


I tried yesterday the tape drive, but I tried some games and didn't see the leds flashing.

All LEDs should work.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #54 on: 11:51, 21 April 10 »
The tape control buttons @ bottom of the desktop app are only additional. (There was empty space and I filled it with control buttons)
They disappear when screen resolution is not high enough.
The counter under the emulator window can be extended to use as control panel, too.
Just hover your mouse above the [<>] button and control panel opens up.


So the desktop should also be usable on netbooks ;)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #55 on: 20:47, 21 April 10 »
Quickly fixed 2 bugs:
- CRTC 1 bug fixed (not so important, I only know s&koh demo, where it appeared)
- Small Z80 Assembler fix (command CP 'x' was not recognized correctly)

Download:
Whole package:
Downlod here
Patched .jar file only (to replace yours):
Downlod here
« Last Edit: 20:50, 21 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #56 on: 12:56, 25 April 10 »
Coded a new palette for GT6x green screen emulation.
The result looks much closer to the original monitor image.

Thanks to Grim, who gave me the new palette values:
Code: [Select]
        0x14580F, 0x165C11, 0x1A6115, 0x1C6417,
        0x1E6819, 0x226D1D, 0x277421, 0x297723,
        0x2D7C27, 0x33852C, 0x36892F, 0x3A8F33,
        0x3C9335, 0x409738, 0x439C3B, 0x48A440,
        0x4BA742, 0x4EAC45, 0x54B44B, 0x57B94E,
        0x5BBE51, 0x5DC153, 0x60C656, 0x64CB59,
        0x68D15D, 0x69D25E, 0x6AD45F,
        0x3F9637, 0x297723, 0x6CD761, 0x165C12,
        0x58BA4E
(From INK 0 to INK 31)



Same with scanlines:
« Last Edit: 12:58, 25 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #57 on: 13:45, 25 April 10 »
Used JavaCPC Paint to convert a GIF image to 3 different formats:   (Overscan)



   


Original   image:
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.335
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3051
  • Likes Given: 5530
Re: JavaCPC Desktop available as BETA!
« Reply #58 on: 17:59, 25 April 10 »
Green looks better than ever :)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #59 on: 13:59, 26 April 10 »
Game example: Dragon's Lair on emulated GT6x monitor:


When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.335
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3051
  • Likes Given: 5530
Re: JavaCPC Desktop available as BETA!
« Reply #60 on: 16:15, 26 April 10 »
A bit washed-out? Needs more contrast...

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #61 on: 16:26, 26 April 10 »
Remember: the GT6x monitor also had poor contrast!
But you can slide brightness (also in emulator)
« Last Edit: 21:01, 26 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #62 on: 16:31, 26 April 10 »
Experimenting with 4096 colours:


Now I will try to code a routine to find the 16 best matching colours out of an array of 4096 colours to create CPC+ screens, too
(Not so easy because JavaCPC cannot emulate the +!)
                 
Photoshop result would look like:
« Last Edit: 16:34, 26 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #63 on: 18:44, 27 April 10 »
Thanks to Executioner, Kevin and Bryce I got this fu**ing 'scan' command   working in FDC emulation:


*happy*
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.335
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3051
  • Likes Given: 5530
Re: JavaCPC Desktop available as BETA!
« Reply #64 on: 20:47, 27 April 10 »
Hahaha! Good for you man :D

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #65 on: 00:43, 28 April 10 »
Updated BETA:
Download

- New green screen emulation
- FDC command SCAN added
- some Z80 Assembler bugfixes

Sources downloadable from SVN repository:
http://javacpc.svn.sourceforge.net/viewvc/javacpc/
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Ynot.zer0

  • CPC6128
  • ****
  • Posts: 293
  • Country: gb
  • Liked: 23
  • Likes Given: 63
Re: JavaCPC Desktop available as BETA!
« Reply #66 on: 12:45, 28 April 10 »
Okay, so what am I doing wrong?


I downloaded the source code from here: http://www.cpctech.org.uk/source/shftspr.asm
I downloaded the JavaCPC Desktop (which I am now realising is a really cool thing to have running on my desktop).
I opened the Z80 Assembler, I pasted in the code from above and pressed Compile, it complains of >600 Errors then if I wait it does a second pass and I just get the 3 errors (as shown in the 2nd screenshot).


Do I need to setup some other configuration settings to be able to compile? (I have Exact Maths checked in the Edit menu)


Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #67 on: 12:49, 28 April 10 »
I don't know, what went wrong.
I did the same, worked with exact maths and also without...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Bryce

  • The Hardware Guy.
  • Supporter
  • 6128 Plus
  • *
  • Posts: 11.228
  • Country: wf
  • It's not broken, it just hasn't been fixed yet.
    • index.php?action=treasury
  • Liked: 3929
  • Likes Given: 415
Re: JavaCPC Desktop available as BETA!
« Reply #68 on: 12:53, 28 April 10 »
Different compiler version?

Bryce.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #69 on: 12:57, 28 April 10 »
Different compiler version?

I am using exact the latest version as I posted here...
http://cpc-live.com/javacpc_6_8_beta.zip

But please make sure you also use it. I updated this zip yesterday!

Edit: just seen this:
Quote
I opened the Z80 Assembler, I pasted in the code from above and pressed   Compile, it complains of >600 Errors then if I wait it does a second   pass and I just get the 3 errors (as shown in the 2nd screenshot).

JavaCPC's assembler normally ignores all errors in first pass! So I really wonder how it could show about 600 error messages....
« Last Edit: 13:01, 28 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Ynot.zer0

  • CPC6128
  • ****
  • Posts: 293
  • Country: gb
  • Liked: 23
  • Likes Given: 63
Re: JavaCPC Desktop available as BETA!
« Reply #70 on: 13:10, 28 April 10 »
and I downloaded it yesterday morning.... oh damn, okay, I just re-downloaded again and it works okay now.  How unlucky was I?!

cool, all works nicely now.  Thanks!




p.s. it must be too early for me, it now says '6 ERRORS', I swear it said 601 or something earlier - cannot get it to repro now though (typical) - although using the latest latest zip version all works okay
« Last Edit: 13:14, 28 April 10 by ynot.zer0 »

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.335
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2261
  • Likes Given: 3478
Re: JavaCPC Desktop available as BETA!
« Reply #71 on: 13:11, 28 April 10 »
Okay, so what am I doing wrong?
Not sure. this is what I did.

I clicked on the link to show the source.

Select All, and then copy.

Opened javacpc.exe
Went to assembler window
create new file
paste
compile

call &1000 in window :)

EDIT: Cool it works now.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #72 on: 13:18, 28 April 10 »
The bug was:
Old assembler had a bug in parsing bytes.
In this case the value is negative (-xx)
JavaCPC found 0 as result.
This is fixed in the latest version.
(Internally it was calculated well, but compiler did not remove the minus-sign so it returned 0 as byte)

Another bug was in parsing LD A,(value).
My code "searched" for 'IX' and replaced it by 0.
This was bad because the source contained 'SPR_PIXEL_OFFS'.
So the internal result was 'SPR_P0EL_OFFS' which would be a non-defined label.
I fixed that, too.
« Last Edit: 13:26, 28 April 10 by Devilmarkus »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #73 on: 15:23, 03 May 10 »
Comparing emulated green screen with original GT-65 image:
(The image is a bit too bright here, should be a bit darker)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1012
  • Likes Given: 926
Re: JavaCPC Desktop available as BETA!
« Reply #74 on: 20:40, 03 May 10 »
Working on new screen capturing method.
You are able to store with 50fp/s single frames now!
Then you can convert them to an animated GIF or keep them as single files.

In my test I kept the single files. (18.000 jpg images for 6 minutes video)
Then I used some software to render a video of them. Also mixed audiostream under the video.
Result:
[youtube=hXoIq4mWGhg]hXoIq4mWGhg[/youtube]
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release