Re: Would a GameBoy emu for MSX be possible?
Laurens Holst wrote: Umm I know this is an interesting subject but haven't we discussed this only a few months ago??? we did ^^; But apparently Marat doesn't read the mailinglist very often. He probably felt it was necessary to reply on this old thread, thus refueling it. :/ Patriek ,--. ,---. ,--. Homepage: \"To make a mistake is | '--.| __ \ \__/ http://www.tni.nl// human, but to really | __|| | | | ,--. E-mail: \ fuck things up, you | | | | | | | | [EMAIL PROTECTED] / need a computer." | '---' | | '--' | \- Glenn Scott, \_| || The New Image -since 1991-/ Secret Agent W7 MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
Umm I know this is an interesting subject but haven't we discussed this only a few months ago??? ~Grauw ps. I seem to have missed some messages, the first message on this subject for instance... -- email me: [EMAIL PROTECTED] or ICQ: 10196372 visit the Datax homepage at http://datax.cjb.net/ MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/ MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
On Tue, 26 Oct 1999, Marat Fayzullin wrote: Before you start using GB CPU similarities to Z80 as an argument, I have to warn you that GB CPU is has slightly *different* set of opcodes than Z80, and Z80 has no ability to interrupt on certain opcodes chosen by the programmer. So, you are back to square one, emulating GB CPU on MSX CPU. I would not know if it is possible, but the similarity does for sure make it easier to emulate it. Of course you need to check all opcodes (IN's and OUT's will be very different), but it is very fast if you can say: with all these opcodes we can just execute the command directly. As I said before, I don't know if it is possible to emulate it at reasonable speed (It seems that it isn't), but it is a very good argument the cpu's are alike. Bye, shevek /***Use gcc to compile***Don't mind the warning/ int*a,k ,v[9];int*main (){int i,j,s=1, x,z ,c[ ]={1,4,7,4,3,4,5,4 ,1,1,1 ,2, 3,3,3,4};for(i=0;( i++9) !k ;s=-s){k=0;scanf("%d",z);v [--z ]=s;for(j=0;j 8; j++){z=v[ c[j ]];k|=z==v [c[ j]- c[j+8]]( z(v[ c[j]+c [j+ 8]]==z));;;}}printf(" %d won\n",- s*k );} /***Tic-tac-toe.use 1-9 to play/ MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
Of course you need to check all opcodes (IN's and OUT's will be very different), According to the Gameboy technical specifications faq (to which Marat has contributed) the CPU doesn't even know port I/O instructions. Here's what it says about Z80 compatibility: Processor - The GameBoy uses a computer chip similar to an Intel 8080. It contains all of the instructions of an 8080 except there are no exchange instructions. In many ways the processor is more similar to the Zilog Z80 processor. Compared to the Z80, some instructions have been added and some have been taken away. The following are added instructions: ADD SP,nn ;nn = signed byte LDI (HL),A;Write A to (HL) and increment HL LDD (HL),A;Write A to (HL) and decrement HL LDI A,(HL);Write (HL) to A and increment HL LDD A,(HL);Write (HL) to A and decrement HL LD A,($FF00+nn) LD A,($FF00+C) LD ($FF00+nn),A LD ($FF00+C),A LD (),SP LD HL,(SP+nn) ;nn = signed byte STOP ;? SWAP r ;Rotate register r by 4 bits The following instructions have been removed: Any command that uses the IX or IY registers. All IN/OUT instructions. All exchange instructions. All commands prefixed by ED (except remapped RETI). All conditional jumps/calls/rets on parity/overflow and sign flag. The following instructions have different opcodes: LD A,[] LD [],A RETI Unfortunately, the document doesn't tell us which opcodes go with these mnemonics, but at least it gives some valuable info about the hardware of the GB. So pick up a copy of GBSPEC.TXT if you're interested. Or I could mail it to you if ou like. Pierre MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
At 11:47 27-10-99 +0200, Shevek wrote: On Tue, 26 Oct 1999, Marat Fayzullin wrote: Before you start using GB CPU similarities to Z80 as an argument, I have to warn you that GB CPU is has slightly *different* set of opcodes than Z80, and Z80 has no ability to interrupt on certain opcodes chosen by the programmer. So, you are back to square one, emulating GB CPU on MSX CPU. I would not know if it is possible, but the similarity does for sure make it easier to emulate it. Of course you need to check all opcodes (IN's and OUT's will be very different), but it is very fast if you can say: with all these opcodes we can just execute the command directly. As I said before, I don't know if it is possible to emulate it at reasonable speed (It seems that it isn't), but it is a very good argument the cpu's are alike. Yeah. For instance, you can keep all GB CPU registers (including flags) in the alternate Z80 registerbanks permanently. The GB CPU PC and SP can be kept in Z80's IX and IY. Also Gameboy uses 16kB ROM switching, easily converted to MSX memorymapper switching. Also, other computers normally don't have patternmodes, MSX does. For V9990 it would be easy to store all patterns, this means hardware tile-caching! Even with SCREEN 4 it would be possible if you reduce colors per tile from 4 to 2. As a result of this patternmode, MSX doesn't have to build the entire screen every frame. And certainly not pixel-by-pixel, like PC's do! MSX also has the advantage of hardware scrolling and VDP commands. I'll immediately admit it wouldn't be possible to emulate the GB (let alone GB Color) perfectly on current MSX systems, but an 'approximation' is definately within the possibilities I believe. Even if it could run only 1 game at 10% speed, it would be impressive, right?! Greetz, Patriek ,--. ,---. ,--. Homepage: \"To make a mistake is | '--.| __ \ \__/ http://www.tni.nl// human, but to really | __|| | | | ,--. E-mail: \ fuck things up, you | | | | | | | | [EMAIL PROTECTED] / need a computer." | '---' | | '--' | \- Glenn Scott, \_| || The New Image -since 1991-/ Secret Agent W7 MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
On Mon, 26 Jul 1999, Manuel Bilderbeek wrote: I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? It is definitely impossible to make a fully functional GB emulator for MSX (even on 7MHz Z80). IMHO, it is quite impossible to make such an emulator at all, even with limited capabilities. The CPU just isn't fast enough to emulate GB at playable speed. Before you start using GB CPU similarities to Z80 as an argument, I have to warn you that GB CPU is has slightly *different* set of opcodes than Z80, and Z80 has no ability to interrupt on certain opcodes chosen by the programmer. So, you are back to square one, emulating GB CPU on MSX CPU. You may want to look at attempts by multiple people to write GB emulators for PalmPilot (32bit 680x0 CPU at 7MHz and higher, if I remember correctly). Even optimized assembly versions are still not fast enough. Marat MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? Hmmm, maybe like Mission, which patches the Coleco ROMs so they can be run in MSX. No no no!!! The GameBoy processor is NOT a Z80, so this is NOT possible!!! ~Grauw _ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible? Yes! On GFX9000!
I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? According to Collin van Ginkel (now developing on GameBoy) it should be possible with a GFX9000. If anyone would like to try and write such an emulator, you can contact him for all technical docs! He is right. However, maybe it is a better idea to just 'recompile' some GameBoy-games, instead of emulating them... Just like those recompiled Konami-games for the PC... Emulating it soo much processor-sensitive, especially because the GameBoy uses a non Z80-compatible processor (however is also uses memory-mapped I/O, which makes it easier to emulate... Will anyone try to beat this challenge? Maybe sometime in the future, when I've got a Gfx9000... ~Grauw _ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible? Yes! On GFX9000!
Manuel Bilderbeek wrote: Hi! I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? Maybe Marcel de Kogel, who wrote Mission, can shed a light on this? Or Marat Fayzullin maybe? -- According to Collin van Ginkel (now developing on GameBoy) it should be possible with a GFX9000. If anyone would like to try and write such an emulator, you can contact him for all technical docs! Will anyone try to beat this challenge? -- Grtjs, Manuel ((m)ICQ UIN 41947405) PS: MSX 4 EVER! (Questions? See: http://www.faq.msxnet.org/) PPS: Visit my homepage at http://www.sci.kun.nl/marie/home/manuelbi/ MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible? Yes! On GFX9000!
Hi! According to Collin van Ginkel (now developing on GameBoy) it should be possible with a GFX9000. If anyone would like to try and write such an emulator, you can contact him for all technical docs! Graphics wise the GFX900 could use the dual-plane mode for the regular monochrome Gameboy emulation, that should be rather easy. Same concept, patterbased, hardwarescroll etc etc. MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible? Yes! On GFX9000!
Hi! According to Collin van Ginkel (now developing on GameBoy) it should be possible with a GFX9000. If anyone would like to try and write such an emulator, you can contact him for all technical docs! Graphics wise the GFX900 could use the dual-plane mode for the regular monochrome Gameboy emulation, that should be rather easy. Same concept, patter-based, hardwarescroll etc etc. Gameboy Color emulation is a little bit tougher, the GFX9000 could use a screen12 like mode but with 32768 colors. But the GBColor also has a dual speed mode and DMA type things. So it would be very hard to get it going at normal speed, even on the best pumped up Turbo-R Gti. I think the source-code for Virtual Gameboy shouldn't be to hard get, so I'd say, give monochrome GB emulation at least a go. Should be interesting to see how far you can come! Greetz, Collin MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
At 19:14 26/07/99 +0200, you wrote: I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? Hmmm, maybe like Mission, which patches the Coleco ROMs so they can be run in MSX. Nice idea! Ricardo Jurczyk Pinheiro - ICQ UIN:3635907 - [EMAIL PROTECTED]|_Sola Scriptura | http://i.am/rjp -M.Sc. Numerical Modelling (hope so!) |_ Sola Gratia | UFF - Niteroi - RJ - Brazil - [EMAIL PROTECTED]_| Sola Fide | MSX, ST, B5, X-F, Anime, Christian, Maths, CuD, Linux!_| Solo Cristi | Christian, Rock, Comics, Transformers, and hate M$! | Soli Deo Gloria | After B5... Phrase found painted in a wall in Brasilia: "Remember Biri" MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
Re: Would a GameBoy emu for MSX be possible?
Hi! I wonder: would it possible to make a GameBoy emulator for MSX? I know it also has a Z80... Maybe it will only work on 7MHz or Turbo R, but would it be possible? Yes. It would be possible. However, the GameBoy processor is NOT a Z80. The GameBoy emulator is alike the Z80, but 'uitgekleed': All alternative registers are gone, as well as IX and IY and all the instructions related to it. This makes emulation easier faster, because the MSX can switch from its own registers to the GameBoy-registers with a simple EXX and EX AF,AF'. Further, the GameBoy has some instructions added to it, for example SWAP r, which swaps the high and the low nibble. Very useful, the Z80 should also have had it. No more 4xRLCA-sequences. Also, it has some opcodes which are mapped to different instructions. To cut things short: The processor has to be emulated, which is quite slow. But using a lot of JP (HL)s (only 4 T-states) and other optimizations it should be fast enough to play at least Tetris. And maybe, it will run on a reasonable speed on a turboR. Now the video: Screen 2 would fit nice, because it is also pattern-orientated, etc. But unfortunately, screen 2 can only handle 2 colors per line of the pattern, and the GameBoy needs 4 colors. So screen 5 is the only solution. Still fast enough for Tetris I think but not for other games. However, there might be a good solution, and it's called Gfx9000. I even have already made a start with an emulator, it can view the header of ROMs (whow!)... Next time I have nothing to do I'll add CPU and Video-emulation... I'll let you know. But at the moment I'm busy with Illusion City, which is by the way poorly programmed. A lot of speed could be gained by optimizing the code... But first I'll make it run on an MSX2. Optimizations (and maybe translation?) will be done later (or not at all, if not nessacary). ~Grauw -- email me: [EMAIL PROTECTED] or ICQ: 10196372 visit the Datax homepage at http://datax.cjb.net/ MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/ MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)