peek for bload program (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 43 invitados y 4 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - peek for bload program

Ir a la página ( 1 | 2 Siguiente página )
Autor

peek for bload program

serge
msx friend
Mensajes: 13
Publicado: Agosto 20 2003, 17:40   
Hi,

In "the old days" there was a peek for if you have load a bload"program" without the ,r you could see the begin adress + the end adress of the program, and also the adress where to start the program.
It was once publishd in a wellknow dutch magazine (msx magazine i think)
My question is does anybody know this peek ?
ro
msx guru
Mensajes: 2353
Publicado: Agosto 20 2003, 18:04   
no.
you have to open the file and read the header (7 bytes) first
header contains:

#FE (telling it's a bin file)
#xxxx start adr.
#xxxx end adr / length (dunno anymore)
#xxxx xqt adr

how to do that in basic?
I forgot... sorry.

in WBASS2 is't like this:
addr "file.ext"

hope this helps!?
Guillian
msx professional
Mensajes: 654
Publicado: Agosto 20 2003, 18:15   
You can read addresses #FCBF & #FCC0 to know execution address. So you can load a file with BLOAD"xxxx" and then execute it with:

defusr=peek(&hfcbf)+peek(&hfcc0)*256:?usr(0)
BiFi
msx guru
Mensajes: 3142
Publicado: Agosto 20 2003, 18:47   
Quote:

how to do that in basic?
I forgot... sorry.


10 OPEN "program" AS #1 LEN=1: FIELD #1,1 AS A$
20 GET #1,1: IF A$<>CHR$(254) THEN CLOSE #1: PRINT "No binary": STOP
30 GET #1: B$=A$: GET #1: AD=ASC("&h"+A$)*256+ASC("&h"+B$)
40 PRINT "Start: "; RIGHT$("0000"+HEX$(AD),4)
50 GET #1: B$=A$: GET #1: AD=ASC("&h"+A$)*256+ASC("&h"+B$)
60 PRINT "End: "; RIGHT$("0000"+HEX$(AD),4)
70 GET #1: B$=A$: GET #1: AD=ASC("&h"+A$)*256+ASC("&h"+B$)
80 PRINT "Exec: "; RIGHT$("0000"+HEX$(AD),4)
90 CLOSE #1: END

should do the trick.
serge
msx friend
Mensajes: 13
Publicado: Agosto 20 2003, 19:21   
heb je programma geprobeer bi fi maar ik krijg als foutmelding "input past end in 20".
fout op regel 20 dus.

Heb je een idee wat er zou mis zijn ?
serge
msx friend
Mensajes: 13
Publicado: Agosto 20 2003, 19:23   
Quote:

heb je programma geprobeer bi fi maar ik krijg als foutmelding "input past end in 20".
fout op regel 20 dus.

Heb je een idee wat er zou mis zijn ?



better do this in englisg i guess...sorry

i have typt your program and have "bload" a program but i get an error "input past end in 20" when i run the program...
any idea why thats happend ?
BiFi
msx guru
Mensajes: 3142
Publicado: Agosto 20 2003, 19:33   
Quote:

better do this in englisg i guess...sorry

i have typt your program and have "bload" a program but i get an error "input past end in 20" when i run the program...
any idea why thats happend ?

Did you replace the "program" by the name of your .bin file in line 10? The program opens the bin-file to read the header data.

If you didn't you might have a new file called "program" with filesize 0.
~mk~
msx novice
Mensajes: 30
Publicado: Agosto 20 2003, 20:00   
I used to have a cool program that did this, it was called A-Linea. It was very useful when I bought my disk-drive and had to copy all my games from cassette to diskette.
serge
msx friend
Mensajes: 13
Publicado: Agosto 20 2003, 20:11   
Quote:

I used to have a cool program that did this, it was called A-Linea. It was very useful when I bought my disk-drive and had to copy all my games from cassette to diskette.



that's the reason i want sutch peek or program. so the picture is this: i have a wave file that i maked from a rom file with waver, i want to load them in the memory of the msx via the tape port (what's working fine btw) an then i need the adresses to save them om my ss 360k disk. (try pc to msx programs for msx disk but nothings works)
the other program doent work because i changed line 10 as:
10 open "cas:" ........etc.... but i get an syntax error then.
hope things are more clear now

~mk~
msx novice
Mensajes: 30
Publicado: Agosto 20 2003, 22:56   
Ok I have just tried the program after ~10 years and the correct name is "R.Bit Alineador". Let me know if you can't find it. I don't think it is copyrighted software so there would be no trouble to post here, right?
serge
msx friend
Mensajes: 13
Publicado: Agosto 20 2003, 23:00   
Quote:

Ok I have just tried the program after ~10 years and the correct name is "R.Bit Alineador". Let me know if you can't find it. I don't think it is copyrighted software so there would be no trouble to post here, right?



can you send this program over e-mail to me ?

matteeuws.serge@pandora.be
~mk~
msx novice
Mensajes: 30
Publicado: Agosto 21 2003, 04:37   
Quote:

can you send this program over e-mail to me ?

matteeuws.serge@pandora.be



Sent. It's a binary file ("bloadable".

Just in case you don't know spanish: choose option 3 "directorio de cassette", then press 'n' for no (it is asking if you want to use the printer) and then press play on your cassette player, the start, end and execute addresses should appear behind "COM", "FIN" and "AUTORUN" respectively.

Good luck!
Thom
msx addict
Mensajes: 378
Publicado: Agosto 21 2003, 08:22   
~mk~, are you THE mk?
serge
msx friend
Mensajes: 13
Publicado: Agosto 21 2003, 10:09   
[quote]>>can you send this program over e-mail to me ?

matteeuws.serge@pandora.be<<

Sent. It's a binary file ("bloadable".
quote]


sorry, give you the wrong mail adress...can you send it again please...?

serge.matteeuws@pandora.be
tcm1998
msx lover
Mensajes: 90
Publicado: Agosto 21 2003, 16:52   
The program TAPDIR from MC(C)M does the same thing. It's published in source, so I guess it's kind of free.
 
Ir a la página ( 1 | 2 Siguiente página )
 







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