makebin (Development Foros MSX)MSX Resource Center PassionMSX MSX2 contest           
                       
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 118 invitados y 2 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - makebin

Autor

makebin

IC
msx professional
Mensajes: 538
Publicado: Febrero 27 2004, 00:16   
Ok.. Here's a nutcracker...

In the time of Philemon BBS systems you could use a tool called 'makebin' to create a binary files from a basic listing (it had something to do to make the load process faster).

I remember that there are 2 several pokes (I thought it had something to with &h8001) to make the listing visible again.
Does anyone know the pokes you need to use to make a binary file visible again?

Tia

Sonic_aka_T

msx guru
Mensajes: 2262
Publicado: Febrero 27 2004, 03:32   
Didn't that depend on the specific listing? Try peeking it before you bsave it. I do remember the pokes (I used them too) but think it really was kinda listing specific. I think it indicated the length of the listing. If you poked just anything you'd get crap after the listing end, which you then had to delete.
flyguille
msx master
Mensajes: 1183
Publicado: Febrero 27 2004, 03:50   
&h8000 = 0
&H8001-2 i think would point to the free RAM for variables (the next to the last byte used by the BASIC program)

but not check it

GuyveR800
msx guru
Mensajes: 3048
Publicado: Febrero 27 2004, 21:01   
I recently found all my original Philemon disks and TNI BBS backups (along with a lot of 'forum' messages from that time! ^_^).
I'll try to find some time to weed through them to find the documentation of MAKEBIN.

BTW, your memory about the purpose of MAKEBIN was correct. BIN files load a lot faster than BAS files, and since most BBS's ran on floppy in those days...
NYYRIKKI
msx master
Mensajes: 1503
Publicado: Febrero 27 2004, 22:00   
Your BASIC knowledge seems to be in rust!

I have newer heard of this MAKEBIN, but I can help you with these BASIC things.

The BASIC memory starts from &H8000 or actually from address: peek(&HF676)+peek(&hF677)*256-1

I anyway refer it here just &H8000 as that is a typical situation.

&H8000 (byte) must be 0 to be able to run the program.
&H8001 (word) points to the address of next BASIC line. (next equal address as this is)
&H8003 (word) here is linenumber
&H8005 Here is tokenized BASIC line that is zero terminated.

You can restore the address in &H8001 by searching the next BASIC line start. That can be done for example like this: (NOTE: Do not add line number, that will mess up the memory area, we try to restore)

A=PEEK(&HF676)+PEEK(&HF677)*256:AD=A+3:FORI=0TO1:I=0:AD=AD+1:IFPEEK(AD)=0THENAD=AD+1:A1=INT(AD/256)OKEA,AD-A1*256OKEA+1,A1ELSENEXT

~NYYRIKKI

BiFi
msx guru
Mensajes: 3142
Publicado: Febrero 27 2004, 22:34   
I made a little binary for this purpose. You need to load the Basic program you want to save as a binary file and the run my binary. It adds a small piece of binary right after the Basic code and returns a BSAVE command with the necessary addresses to load and start the Basic program. All you need to adapt is the file name in that line and execute it.

The archive is complete with source code slightly modifed for tniASM.
 
 







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