bug in MSX-Basic!  (?) (General discussion 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 136 gasten en 0 MSX vrienden online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

General discussion - bug in MSX-Basic! (?)

Ga naar pagina ( 1 | 2 Volgende pagina )
Schrijver

bug in MSX-Basic! (?)

wolf_

msx legend
Berichten: 4629
Geplaatst: 22 Juli 2006, 21:50   
b$="cdefgab"
play"o5l16"+mid$(b$,1,1)


sofar, it works, and you can easily guess what it does
now the next channel!

play"o5l16"+mid$(b$,1,1),"o4l16"+mid$(b$,2,1)

this gives an Illegal function call

I tried it in NLMSX, Boblet in Openmsx ... confirmed bug?
wolf_

msx legend
Berichten: 4629
Geplaatst: 22 Juli 2006, 22:03   
the testing-crew at work:
[21:52] <AuroraMSX> this: play "l8o5"+mid$(b$,1,1), "o5"+mid$(b$,2,1) works!
[21:52] <AuroraMSX> this: play "l8o5"+mid$(b$,1,1), "l8o5"+mid$(b$,2,1) doesn't!

[21:56] <AuroraMSX> listen to this: b$="cd":play"o5l8"+mid$(b$,1,1),"o5"+mid$(b$,2,1)
[21:56] <AuroraMSX> and this: play "o5l8c","o5d"
[21:56] <AuroraMSX> the first one only plays a C on 2 channels!
[21:56] <AuroraMSX> instead of c and d!
[21:57] * boblet has quit IRC (Killed (NickServ (GHOST command used by b0bl3t)))
[21:57] * boblet has joined #msx
[21:57] * ChanServ sets mode: +o boblet
[21:57] <AuroraMSX> weirdness
[21:57] <boblet> cunthorse :(


where's weird-basic-guru nyyrikki when you need him?
wolf_

msx legend
Berichten: 4629
Geplaatst: 22 Juli 2006, 22:23   
talk about obfuscation!

b$="cafebabe":play"o2l8wolf_"+mid$(b$,2,1),"o4l8boblet"+mid$(b$,2,1)


Do I win that challange now?
AuroraMSX

msx master
Berichten: 1227
Geplaatst: 24 Juli 2006, 12:57   
Quote:

talk about obfuscation!

b$="cafebabe":play"o2l8wolf_"+mid$(b$,2,1),"o4l8boblet"+mid$(b$,2,1)


Do I win that challange now?


Only if you extend that weirdness to play "Mary had a little lamb" on 3 channels
BiFi
msx guru
Berichten: 3142
Geplaatst: 24 Juli 2006, 13:33   
wolf and MML? that'll be the day
wolf_

msx legend
Berichten: 4629
Geplaatst: 24 Juli 2006, 13:53   
hey, I never touch MML! And when I do, it bugs on me..
Latok
msx master
Berichten: 1720
Geplaatst: 24 Juli 2006, 14:13   
I've heard about this oddity before. Somewhere. Some time......Long ago.....
BiFi
msx guru
Berichten: 3142
Geplaatst: 24 Juli 2006, 18:40   
MSX-BASIC is filled with oddities...
Tanni
msx addict
Berichten: 302
Geplaatst: 24 Juli 2006, 18:52   
... that's the stuff legends are made of ...
NYYRIKKI
msx master
Berichten: 1500
Geplaatst: 25 Juli 2006, 13:00   
Quote:

where's weird-basic-guru nyyrikki when you need him?



Thank you, I take this as a complement.

Unfortunately at the moment I don't have time to check this out, but don't worry. Later I will. At the moment I'm quite a busy as I'm gonna be homeless after this week and I've not even packed any of my stuff yet. Does someone have any good RLE routine or something similar that could be used for packing home to warehouse?

I think that this "feature" is caused by temporary strings. As temporary strings usually are used only one time (like in PRINT command) they can be erased when next temporary string is needed. This is not valid for PLAY as these strings are converted to simultaneous sounds from MML. This is anyway just speculation... I'm not actually sure at all how the PLAY stack in #F975-#FAF4 is used.


[D-Tail]

msx guru
Berichten: 2991
Geplaatst: 25 Juli 2006, 18:18   
Quote:

Does someone have any good RLE routine or something similar that could be used for packing home to warehouse?

First stack the big stuff and then squeeze the tiny stuff along with it Good luck moving, then!
pitpan
msx master
Berichten: 1367
Geplaatst: 25 Juli 2006, 18:22   
Quote:

Quote:

Does someone have any good RLE routine or something similar that could be used for packing home to warehouse?

First stack the big stuff and then squeeze the tiny stuff along with it Good luck moving, then!



There is a quite old and well documented compression algorithm called F.I.R.E. Its compression ratio is impressive. The only problem is that there isn't any reliable decompression algorithm available so far.
snout

msx legend
Berichten: 4991
Geplaatst: 25 Juli 2006, 18:29   
I think Nyyrikki might be looking for a lossless type of compression ^_^
wolf_

msx legend
Berichten: 4629
Geplaatst: 25 Juli 2006, 18:54   
lossy compression works on old junk .. as there's nothing worth preserving
PingPong
msx professional
Berichten: 869
Geplaatst: 25 Juli 2006, 19:01   
Quote:

[quote]
Unfortunately at the moment I don't have time to check this out, but don't worry. Later I will. At the moment I'm quite a busy as I'm gonna be homeless after this week and I've not even packed any of my stuff yet. Does someone have any good RLE routine or something similar that could be used for packing home to warehouse?






Try the 'BIN' compression !
 
Ga naar pagina ( 1 | 2 Volgende pagina )
 







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