GLBasic forum

Main forum => Off Topic => Topic started by: Hark0 on 2012-Aug-18

Title: DCPU-16 Emulator in GLB...
Post by: Hark0 on 2012-Aug-18
The spec of VM DCPU-16:

http://pastebin.com/raw.php?i=Q4JvQvnM (v 1.7)


and main site info about this computer made by Notch for his new game 0x10c.

http://0x10cwiki.com/wiki/DCPU-16


ANY have time for make a port MADE IN GLBASIC??

;)
Title: Re: DCPU-16 Emulator in GLB?
Post by: mentalthink on 2012-Aug-18
Buff, I don´t understand nothing about make a proccesor whit Code... recently I test in my arduino, an Emulator of 6805 the CPU of C64, running into the Arduino, this things for me are SCI-FI, and it´s very interesting... But I think it´s a bit complex.

Will be fine, if anyone can explain a bit the process for make an Emulator, I don´t want say put the code, but the steps for reading books or info.

Regards,

Interesting Hark0 the project
Title: Re: DCPU-16 Emulator in GLB?
Post by: Hark0 on 2012-Aug-18
Well Iván, a good souce for make an emulator are in

http://fms.komkon.org/EMUL8/HOWTO.html (Marat Fayzullin)


Currently... I have my own video driver for DCPU-16... with original font implemented using MEM2SPRITE... and works well... and have tested some OPCODES and works too...


My obstacle are a good MAIN ROUTINE for speed/clock/cpu cycles/interruptions/video sync...  :(
(help about this topic are welcome).

Nobody interested?


OT Maybe you are making a new killer console?   =D
Title: Re: DCPU-16 Emulator in GLB?
Post by: mentalthink on 2012-Aug-18
You are Dangeours, at least for me!!! =D =D =D No have more time!!! :rant: :rant: :rant:

This Document it´s very interesting, like your project...

PS: I think your project in ZDP can be very interesting!!!. Hark0 you have some youtube video?¿... I´m very corious about this kind of projects... basically I don´t have any idea, how code (not it´s nothing physic, can make something "physics")

Title: Re: DCPU-16 Emulator in GLB?
Post by: Hark0 on 2012-Oct-04
(http://4.bp.blogspot.com/-2OZ7kxlZzT8/UG159BfYSAI/AAAAAAAACGY/iyJnK1ocDMc/s1600/Hark0_CPU_002.png)

Making my own DCPU-16 Emulator with GLBasic!!!  ;)
Title: Re: DCPU-16 Emulator in GLB...
Post by: mentalthink on 2012-Oct-04
ummm!!! que rico!!!, this it´s very very nice...  :nw: :nw:
Title: Re: DCPU-16 Emulator in GLB...
Post by: Wampus on 2012-Oct-05
Smart stuff. :D
Title: Re: DCPU-16 Emulator in GLB...
Post by: matchy on 2012-Oct-05
Not easy but interesting.
Title: Re: DCPU-16 Emulator in GLB...
Post by: Hark0 on 2012-Oct-05
It's my first try for a make a CPU emulator...

;)
Title: Re: DCPU-16 Emulator in GLB...
Post by: Wampus on 2012-Oct-06
I find it exciting. Makes me wonder how difficult it would be to create a ZX spectrum emulator. I guess emulating the sound chip would be a problem if it was done in GLB. Would run 36 times faster than the DCPU-16 so challenging. :D
Title: Re: DCPU-16 Emulator in GLB...
Post by: Sokurah on 2012-Oct-06
Quote from: Wampus on 2012-Oct-06
I find it exciting. Makes me wonder how difficult it would be to create a ZX spectrum emulator. I guess emulating the sound chip would be a problem if it was done in GLB. Would run 36 times faster than the DCPU-16 so challenging. :D

Spectrum is probably the most emulated computer ever. I've even seen a Spectrum emulator in BlitzPlus, and if BP can do it so can GLB.

If you're looking into making your own emulator there's this (https://sites.google.com/site/rveilleux/blitzmaxarcadeemulatortutorial) guy - he's made a Space Invaders arcade emulator in BlitzMax and it includes source code. The Space Invaders arcade game uses a 8080 processor which is very similar to the Z80 processor in the Spectrum, so examining how this works would be a good stepping stone for making an emulator yourself. If you wanted to you could even try to port it to GLBasic as that language is very similar to BlitzMax. There's of course several other Spectrum emulators that comes with source code, but they're all in C (afaik) which would make it harder to port them.
Title: Re: DCPU-16 Emulator in GLB...
Post by: Hark0 on 2012-Oct-06
Ohhh... I  <3 ZX Spectrum too... =D
Title: Re: DCPU-16 Emulator in GLB...
Post by: Hark0 on 2012-Oct-06
And... today DCPU-16, tomorrow ZX?

;)
Title: Re: DCPU-16 Emulator in GLB...
Post by: Ian Price on 2012-Oct-06
Quote from: Hark0 on 2012-Oct-06
And... today DCPU-16, tomorrow ZX?

;)
Just make sure that the CPC emulator is available by Monday, OK. :P