bug in MSX-Basic!  (?) (General discussion 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 29 invitados y 1 miembro en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

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

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

bug in MSX-Basic! (?)

wolf_

msx legend
Mensajes: 4827
Publicado: Julio 22 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
Mensajes: 4827
Publicado: Julio 22 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
Mensajes: 4827
Publicado: Julio 22 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
Mensajes: 1277
Publicado: Julio 24 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
Mensajes: 3142
Publicado: Julio 24 2006, 13:33   
wolf and MML? that'll be the day
wolf_

msx legend
Mensajes: 4827
Publicado: Julio 24 2006, 13:53   
hey, I never touch MML! And when I do, it bugs on me..
Latok
msx master
Mensajes: 1735
Publicado: Julio 24 2006, 14:13   
I've heard about this oddity before. Somewhere. Some time......Long ago.....
BiFi
msx guru
Mensajes: 3142
Publicado: Julio 24 2006, 18:40   
MSX-BASIC is filled with oddities...
Tanni
msx addict
Mensajes: 304
Publicado: Julio 24 2006, 18:52   
... that's the stuff legends are made of ...
NYYRIKKI
msx master
Mensajes: 1533
Publicado: Julio 25 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
Mensajes: 3026
Publicado: Julio 25 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
Mensajes: 1418
Publicado: Julio 25 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
Mensajes: 4995
Publicado: Julio 25 2006, 18:29   
I think Nyyrikki might be looking for a lossless type of compression ^_^
wolf_

msx legend
Mensajes: 4827
Publicado: Julio 25 2006, 18:54   
lossy compression works on old junk .. as there's nothing worth preserving
PingPong
msx master
Mensajes: 1069
Publicado: Julio 25 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 !
 
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