News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

JavaCPC Desktop available as BETA!

Started by Devilmarkus, 22:46, 25 December 09

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gryzor

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 :)

Devilmarkus

Quote from: Gryzor on 08:23, 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

robcfg

Do the floppy leds work?


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

Devilmarkus

Quote from: robcfg on 09: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.

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

Devilmarkus

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

Devilmarkus

#55
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
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

Devilmarkus

#56
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:
        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:
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

Devilmarkus

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

Gryzor


Devilmarkus

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

Gryzor

A bit washed-out? Needs more contrast...

Devilmarkus

#61
Remember: the GT6x monitor also had poor contrast!
But you can slide brightness (also in emulator)
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

Devilmarkus

#62
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:
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

Devilmarkus

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

Gryzor


Devilmarkus

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

Ynot.zer0

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)


Devilmarkus

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

Bryce

Different compiler version?

Bryce.

Devilmarkus

#69
Quote from: Bryce on 10:53, 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:
QuoteI 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....
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

Ynot.zer0

#70
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

arnoldemu

Quote from: ynot.zer0 on 10:45, 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

Devilmarkus

#72
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.
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

Devilmarkus

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

Devilmarkus

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

Powered by SMFPacks Menu Editor Mod