Author Topic: .  (Read 145897 times)

0 Members and 1 Guest are viewing this topic.

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 840
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #400 on: 22:18, 20 June 12 »
Already at the beginning of 2011 I was absolutely amazed about this crazy project! An Emulator for a whole 8bit machine in JAVASCRIPT? First I couldn't believe it at this time, but then I saw, that it really worked.
 In the beginning of the 2000er for me Javascript was something like Basic in the beginning of the 80ies. Nice to use, but slow. But I know, it's getting more and more powerfull.
 When I saw CPCBox the first time in early 2011, it was already fast enough on my Computer, and I was really wondering, how someone could be so crazy to start such an unbelievable project.
 
  [ Invalid Attachment ]
 
 Now it runs better and better, and today I had a lot of fun to see SymbOS running on CPCBox "in Javascript"  ;D
 
 @Phi2x: Fantastic work!!
 
 CU,
 Prodatron
 (who is coding in Javascript since 15 years, but never thought before, that this would be possible!)

like
0
No reactions

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Offline PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #401 on: 00:23, 21 June 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 840
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #402 on: 03:47, 21 June 12 »
@Phi2x: Thanx a lot for these very nice compliments! :)

Anyway I think CPCBox is another impressive step after Marco Vieths very first CPC-Emu for MS-DOS or after Richard Wilsons really perfect WinApe Emulator for Windows (Delphi) or his JEMU (Java), as it again enters another world of actual technology. I think there is nothing else comparable for other 8bit systems yet (the C64 JS emu [JSC64] seems to be still very crappy?).
Keep on the great work! In the past it was an amazing proof of concept, now it's a full working and very accurate reality :)

CU,
Prodatron
like
0
No reactions

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.105
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #403 on: 12:27, 21 June 12 »
Wow, mate, long time no see! :)


Was CPC-Emu really the first CPC emulator? If so, huge amounts of respect...
like
0
No reactions

Offline Prodatron

  • 6128 Plus
  • ******
  • Posts: 840
  • Country: de
  • Back on the Z80
    • index.php?action=treasury
    • SymbOS SYmbiosis Multitasking Based Operating System
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #404 on: 13:37, 21 June 12 »
Well that is, what I remember. Maybe 1-2 other ones appeared at the same time or a little bit later (like Arnold or !CPCemu).
At least with CPC-Emu Marco Vieth created the first version of the standard disc format "DSK" which was later used by all other emulators ;)

CU,
Prodatron
like
0
No reactions

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Offline PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #405 on: 12:48, 22 June 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 17.105
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #406 on: 14:40, 22 June 12 »
Checking converted files is a task that's a perfect fit for crowdsourcing.
The checking will then be handled by all the people (dumpers, users...) that will be interested in replacing their CDT with PZX. It would be a smooth and gradual replacement.
 


That is true, this could be organised between members of a community. But yes, it's not easy changing default formats, there must be merit to it!
like
0
No reactions

Offline PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #407 on: 18:20, 23 June 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #408 on: 01:16, 01 July 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline SyX

  • 6128 Plus
  • ******
  • Posts: 1.137
  • Country: br
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #409 on: 14:13, 01 July 12 »
Well, all the hard work was made by TotO, he always get the best from the CPC colours ;)

And Great Work phi2x!!! It looks more as the cpc in my tv :)
« Last Edit: 14:15, 01 July 12 by SyX »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #410 on: 14:59, 01 July 12 »
But doesnt the colour palette depend on accurate RGB adjustage in the CTM?
Mine was bit reddish... (Until I adjusted it)
Anyway: good work.
Please share your test program ;)
like
0
No reactions
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 PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #411 on: 15:31, 01 July 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #412 on: 15:45, 01 July 12 »
SyX!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
like
0
No reactions
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
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #413 on: 16:03, 01 July 12 »
Ok, once I measured the colours from CPC's output signal.
The result is here:
[attachimg=1]

As you can see, there are also differences between the dithered pixels.

like
0
No reactions
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 TotO

  • 6128 Plus
  • ******
  • Posts: 4.023
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #414 on: 16:05, 01 July 12 »
>>> Mir'Color
Mir'Color <<<

EDIT:
OK, you got it... ;)

With a perfect but improbable "linear palette", the 3 grays strips have to look the same on the light, middle and dark part.
On a real CPC, it may look more blue, or red or green, depending the resistors inside the computer.
So, you can adjust your CTM and/or fix CPC resistors using this tool to get a best display result.
« Last Edit: 16:20, 01 July 12 by TotO »
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline TotO

  • 6128 Plus
  • ******
  • Posts: 4.023
  • Country: fr
    • ?area=showdonations;u=4
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #415 on: 16:14, 01 July 12 »
As you can see, there are also differences between the dithered pixels.
I can see a CRTC emulation problem too. :D
The Mode 2 look 1 pixel shifted to the left, no?
like
0
No reactions
"You make one mistake in your life and the internet will never let you live it down" (Keith Goodyer)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #416 on: 16:20, 01 July 12 »
I can see a CRTC emulation problem too. :D
The Mode 2 look 1 pixel shifted to the left, no?

Sure it is ;) Like I posted in the other thread.
Question about GateArray
like
0
No reactions
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 PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #417 on: 16:26, 01 July 12 »
.
« Last Edit: 17:19, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #418 on: 16:28, 01 July 12 »
Well I don't think so.
The difference is:
Grim measured directly @ the GA's output.
I measured AFTER the resistors...
like
0
No reactions
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
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #419 on: 16:31, 01 July 12 »
Some more: (To not confuse TotO, without pixelshifting)
mircolor_green.png
* mircolor_green.png
(Filesize: 6.82 KB, Dimensions: 768x544, Views: 73)
mircolor_monochrome.png
* mircolor_monochrome.png
(Filesize: 6.81 KB, Dimensions: 768x544, Views: 62)
[ Invalid Attachment ]

First: Linear palette
Second: Green screen
Third: Monochrome screen

Edit: monochrome result needs better measuring... These are calculated values. But a monochrome monitor is NOT gray only! (Like the greenie is NOT green only)

« Last Edit: 16:41, 01 July 12 by Devilmarkus »
like
0
No reactions
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 PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #420 on: 16:41, 01 July 12 »
.
« Last Edit: 17:20, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #421 on: 16:43, 01 July 12 »
I am using these values:
Code: [Select]
    protected static final int[] inkTranslateMeasured = {
        /*R G B */
        0x677867, /*13*/
        0x677867, /*27*/
        0x0FF878, /*19*/
        0xF8F865, /*25*/
        0x020850, /* 1*/
        0xEF186F, /* 7*/
        0x087067, /*10*/
        0xF8896F, /*16*/
        0xEF186F, /*28*/
        0xF8F865, /*29*/
        0xF8F821, /*24*/
        0xF7F8F8, /*26*/
        0xE81F13, /* 6*/
        0xF818F8, /* 8*/
        0xF88F07, /*15*/
        0xF889F8, /*17*/
        0x020850, /*30*/
        0x0FF878, /*31*/
        0x11F80E, /*18*/
        0x28F8F8, /*20*/
        0x000706, /* 0*/
        0x0A10D8, /* 2*/
        0x086F08, /* 9*/
        0x0F7EF8, /*11*/
        0x570F59, /* 4*/
        0x78F870, /*22*/
        0x80F80C, /*21*/
        0x79F8F8, /*23*/
        0x510F08, /* 3*/
        0x6011E8, /* 5*/
        0x677807, /*12*/
        0x6F7FF8 /*14*/
    };

Grim these:
Code: [Select]
    protected static final int[] inkTranslateGrim = {
        /*R G B */
        0x6E7D6B, /*13*/
        0x6E7D6B, /*27*/
        0x00F36B, /*19*/
        0xF3F36D, /*25*/
        0x00026B, /* 1*/
        0xF00268, /* 7*/
        0x007868, /*10*/
        0xF37D6B, /*16*/
        0xF00268, /*28*/
        0xF3F36D, /*29*/
        0xF3F30D, /*24*/
        0xFFF3F9, /*26*/
        0xF30506, /* 6*/
        0xF302F4, /* 8*/
        0xF37D0D, /*15*/
        0xFA80F9, /*17*/
        0x00026B, /*30*/
        0x00F36B, /*31*/
        0x02F001, /*18*/
        0x0FF3F2, /*20*/
        0x000201, /* 0*/
        0x0C02F4, /* 2*/
        0x027801, /* 9*/
        0x0C7BF4, /*11*/
        0x690268, /* 4*/
        0x71F36B, /*22*/
        0x71F504, /*21*/
        0x71F3F4, /*23*/
        0x6C0201, /* 3*/
        0x6C02F2, /* 5*/
        0x6E7B01, /*12*/
        0x6E7BF6 /*14*/
    };

So, if I use Grim's measured values, the result looks like this:

« Last Edit: 16:46, 01 July 12 by Devilmarkus »
like
0
No reactions
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
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #422 on: 16:53, 01 July 12 »
On a real CPC it should look like this:
 [ Invalid Attachment ]

If not, ALL CPCs are bad, only emulators are perfect  :P 8)

like
0
No reactions
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 PhilZeVibe

  • 464 Plus
  • *****
  • Posts: 471
  • Country: 00
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #423 on: 16:53, 01 July 12 »
.
« Last Edit: 17:20, 30 June 21 by PhilZeVibe »
like
0
No reactions

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
    • Awards
Re: CPCBox, your CPC emulator in Javascript
« Reply #424 on: 16:56, 01 July 12 »
Yeah thats true: A greenscreen cant display a real dark black.
It's always greenish

The greenie palette I use, was also measured by Grim ;)

Edit: Think, that a greenie would just show green values: What would it result in? Into only 15 green colours. But a CPC has 27 colours (green tones)

And here we find the most important problems for emulators, which are 8 bit RGB based:
We only can difference between 15 values (0x00 - 0x0f)
Thats why we need at least RR,GG,BB values
« Last Edit: 17:02, 01 July 12 by Devilmarkus »
like
0
No reactions
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