Cload 'n' Run (Development Foros MSX)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
                       
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 108 invitados y 1 miembro en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - Cload 'n' Run

Autor

Cload 'n' Run

cesco
msx addict
Mensajes: 261
Publicado: Febrero 17 2008, 15:16   
I think that I had a good idea for MSX Taper... well, or at least for saving me a lot of time when I try to load a game

I can't never remember if a game on tape must be loaded with the command LOAD, CLOAD or BLOAD
So I was thinking about the possibility of adding a "universal loader"... something really simple infact... It just takes a look at the first MSX file stored in a tape...

if it's a binary file, before that file it inserts this simple basic program:

10 POKE -1, 170
20 BLOAD "CAS:",R

if it's a basic program instead, it writes:

10 CLOAD
20 RUN

So that's convenient (well, at least that is true for me), because I know that when I insert that small program I don't have to worry about the right command, and I can always type RUN "CAS:" to load the game, no matter what.


But I have a problem... after the CLOAD command the MSX should be supposed to execute the RUN command, but it doesn't work... off course, because a new BASIC program is loaded into the memory. Do you know if there is any way to CLOAD something and execute it ?
manuel
msx guru
Mensajes: 3382
Publicado: Febrero 17 2008, 15:49   
Um, don't use POKE -1,70! Use the universal poke, see the Ultimate MSX FAQ.
Also, your CLOAD and RUN program won't work, indeed. After CLOAD, the loader program is overwritten Probably, the only thing you can do is poke the load and run instruction into the keyboard buffer.

Check out what happens if you insert several types of CAS images into openMSX when the setting "autoruncassettes" is enabled.
AuroraMSX

msx master
Mensajes: 1231
Publicado: Febrero 17 2008, 15:55   
Not a complete solution, but a suggestion: I've seen a small BASIC program that pokes the name of a DOS program into the keyboard input buffer and then just does a CALL SYSTEM to switch to DOS. DOS reads the input buffer as if the user just typed the command and runs the program.

Maybe you could have the loader poke "RUN" into the keyboard buffer, then load the program with CLOAD. After CLOAD has finished BASIC will read the input buffer and run the program (hopefully )

(Hi manuel - gmta, eh?)
cesco
msx addict
Mensajes: 261
Publicado: Febrero 18 2008, 13:17   
Thank you
 
 







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