peek for bload program (Development MSX Fora)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 121 gasten en 4 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Development - peek for bload program

Ga naar pagina ( 1 | 2 Volgende pagina )
Schrijver

peek for bload program

serge
msx friend
Berichten: 13
Geplaatst: 20 Augustus 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
Berichten: 2307
Geplaatst: 20 Augustus 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
Berichten: 618
Geplaatst: 20 Augustus 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
Berichten: 3142
Geplaatst: 20 Augustus 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
Berichten: 13
Geplaatst: 20 Augustus 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
Berichten: 13
Geplaatst: 20 Augustus 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
Berichten: 3142
Geplaatst: 20 Augustus 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
Berichten: 30
Geplaatst: 20 Augustus 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
Berichten: 13
Geplaatst: 20 Augustus 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
Berichten: 30
Geplaatst: 20 Augustus 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
Berichten: 13
Geplaatst: 20 Augustus 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
Berichten: 30
Geplaatst: 21 Augustus 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
Berichten: 377
Geplaatst: 21 Augustus 2003, 08:22   
~mk~, are you THE mk?
serge
msx friend
Berichten: 13
Geplaatst: 21 Augustus 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
Berichten: 90
Geplaatst: 21 Augustus 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.
 
Ga naar pagina ( 1 | 2 Volgende pagina )
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.