New software: EasyCPU (Development Foros MSX)MSX Resource Center            
                       
English Nederlands Espa�ol Portugu�s Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 38 invitados y 4 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - New software: EasyCPU

Autor

New software: EasyCPU

NYYRIKKI
msx master
Mensajes: 1533
Publicado: Agosto 21 2007, 12:45   

On MSX tR changeing CPU expetially on BASIC is usually hard. Either you have to write complex BASIC programs or you need to load some sort of BASIC extension to get needed functionality. Now there is finally one command solution called EasyCPU!

Here is how you can use this program...

BASIC:

BLOAD"EASYCPU.COM",R,<CPUMODE>

DOS:

EASYCPU <CPUMODE>

<CPUMODE>:
0 = Z80
1 = R800 ROM
2 = R800 DRAM

As I'm lazy I release this software as source. Feel free to use it where ever you need it.

~NYYRIKKI

        OUTPUT EASYCPU.COM

	CP 0
	ADD A,THEEND
	ADD A,1
	ADD A,0

	ORG 1

	LD HL,#2D
	LD A,#80
	CALL #C
	EX AF,AF'
	DEC SP
	LD DE,#309
	DEC SP
	POP HL
	LD A,L
	SUB E
	LD C,A
	LD B,H
	DEC H
	JR NZ,SKIP
	LD A,(#82)
	XOR #30
SKIP:
	EX AF,AF'
	CP D
	JR NZ,NOTR
	EX AF,AF'
	CP D
	JR NC,ICPU
	OR #80
	DW #80F7,384
	RET
NOTR:
	LD HL,NOTRTXT
	JR PRINT
ICPU:
	LD HL,ICPUTXT
PRINT:
	ADD HL,BC
	EX DE,HL
	LD C,L
	JP #F37D

NOTRTXT:
	DEFB "This program is for MSX tR only.",#D,#A,"$"
ICPUTXT:
	DEFB "Illegal CPU mode.",#D,#A,"$"
THEEND:


ro
msx guru
Mensajes: 2353
Publicado: Agosto 21 2007, 16:11   
what's with the BASIC man?
There's already a DOS prop to switch CPU...

Nice solution tho. thanx.


NYYRIKKI
msx master
Mensajes: 1533
Publicado: Agosto 21 2007, 16:43   
@ro: Trust the force man! It will work on BASIC as well...

manuel
msx guru
Mensajes: 3635
Publicado: Agosto 21 2007, 18:54   
Another nice one in the category "NYYRIKKI gems"...
karloch

msx addict
Mensajes: 422
Publicado: Agosto 21 2007, 23:47   
Quote:

As I'm lazy I release this software as source. Feel free to use it where ever you need it.

Oh, so this is absolute 100% pure opensource xD
arnold_m
msx lover
Mensajes: 86
Publicado: Agosto 23 2007, 22:09   
[nitpicking]
I'm not sure whether what NYYRIKKI is the preferred form for making changes to, if it is not it does not really qualify as open source.
[/nitpicking]
NYYRIKKI
msx master
Mensajes: 1533
Publicado: Agosto 24 2007, 00:45   
It seems that these questions pop up even when answer has no practical value to anyone. I think I have to learn to be more accurate. Ok, here we go: Take it, use it on your projects, modify it, change the name, claim that you made it. I don't care. Credits are always nice but not required. Clear?

The actual point I was trying to make was -> "Look, I got nice idea" and "Here you can see assembler and BASIC environment abused and used all wrong (again)"


Alex
msx lover
Mensajes: 102
Publicado: Agosto 25 2007, 20:09   
I have made a binary version of EasyCPU available on The MSX Plaza for people who are too lazy to compile it themselves
AuroraMSX

msx master
Mensajes: 1277
Publicado: Agosto 25 2007, 21:56   
Quote:

[nitpicking]
I'm not sure whether what NYYRIKKI is the preferred form for making changes to, if it is not it does not really qualify as open source.
[/nitpicking]

I'm not sure whether I actually understand the above sentence...
 
 







(c) 1994 - 2009 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation