Free your creativity - IOMBCC (Development MSX Forum)MSX Resource Center MRC MEGA Challenge - What can you squeeze out of 64x48 pixels?              
              
English Nederlands Español Português Russian         
 News
   Frontpage
  News archive
  News topics

 Resources
   MSX Forum
  Articles
  Reviews
  Fair reports
  Photo shoots
  Fairs and meetings
  Polls
  Links
  Search

 Software
   Downloads
  Webshop

 MRC
   Who we are
  Join our team
  Donate
  Policies
  Contact us
  Link to Us
  Statistics

 Search
 
  

  

 Login
 

Username

Password




Don't you have an account yet? Become an MSX-friend and register an account now!.


 Statistics
 

There are 155 guests and 2 MSX friends online

You are an anonymous user.
 

MSX Forum


MSX Forum

Development - Free your creativity - IOMBCC

Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 Next Page )
Author

Free your creativity - IOMBCC

DarQ
msx professional
Posts: 836
Posted: February 17 2005, 14:40   
hahahaha!! that's a good laugh

EDIT!
BAH!! openmsx-catapult can't seem to type the source into the emulator.. getting syntax errors in certain lines..
viejo_archivero
msx addict
Posts: 428
Posted: February 17 2005, 14:43   
impressive!
jr
msx addict
Posts: 310
Posted: February 17 2005, 15:49   
Found the bug... Now it calcs correctly. Also, reduced the size of the code a bit in the process Now it doesn't show the place of the decimal point though but I suppose everyone here knows where it belongs...

1           DEFINTA                -C,F-G:                DEFDBLD
         -E:A=   10^4:          C=28*   100::          DIMF(   C+1):
        FOR         B=0        TOC         :F(        B)=         A/5
2      NEXT          B::      REM           7*A      MOD           SQR
3     D=0             :G=    C*2             :IF    G=0            THEN
     END              ELSE  B=C               'OR  AND               NOT
4    D=D               +F(  B)*               A:G  =G-               1:F
    (B)                 =D-G *                 INT(D/                 G):
    :D=                 INT(D/                 G):G=G                 -1:
5   B=B                 -1:IFB                 THEND=                 D*B
     :::               GOTO 4::               REM  <>5               SIN
6    :E=               INT  (E+               D/A  )::             PRINT
      MID$            (((    STR$            (E)    )),             2);
7      C=C           -14      :E=           D -      A *           INT
        (D/         A):        GOTO        3'G        RUN         END
         (XXX)   (XXX)          (XXX)   (XXX)          (XXX)   (XXX)
8           'PIcalc                'by'jr'                /IOMBCC


Yeah it's a pain in the ass to type it in Should I upload the bas file?
jr
msx addict
Posts: 310
Posted: February 17 2005, 19:46   
if you don't have the patience to wait for the processing, here's what it looks like when it's all done:


manuel
msx guru
Posts: 3299
Posted: February 17 2005, 21:29   
Quote:

BAH!! openmsx-catapult can't seem to type the source into the emulator.. getting syntax errors in certain lines..



That's because it contains End-Of-Line characters after each line. If the program would have one basic line per text line, it would work... So, you'll have to paste it a bit carefully to enter it with the help of Catapult.
Grauw
msx professional
Posts: 1002
Posted: February 17 2005, 22:46   
Impressive! Though I’m missing a comma there right after the first ‘3’ ...
FiXato
msx freak
Posts: 218
Posted: February 24 2005, 00:11   
Quote:

Now it doesn't show the place of the decimal point though but I suppose everyone here knows where it belongs...


quoted especially for grauw

I like the idea nice listings
Sousuke
msx freak
Posts: 154
Posted: February 24 2005, 16:39   
Totally sick duuuude
DarQ
msx professional
Posts: 836
Posted: February 24 2005, 17:04   
@manuel:
ok, but how about using turbo-r emulation? most characters will go wrong because of its weird keymap.
manuel
msx guru
Posts: 3299
Posted: February 24 2005, 17:30   
DarQ: yes, use the IPS patch to let it have a European keyboard when openMSX 0.5.1 comes out

Of course we should fix this once for real.
[D-Tail]

msx guru
Posts: 2948
Posted: February 24 2005, 18:58   
Looking for: Japanese PC-keyboards!


Edwin
msx professional
Posts: 587
Posted: February 24 2005, 19:50   
For the few that are not aware of the C variant (which started in 1984) of this contest, the website (www.ioccc.org) of the IOCCC contains a lot of inspiring code. It's C, but that doesn't mean some of the concepts can't be applied to MSX Basic.
NYYRIKKI
msx master
Posts: 1474
Posted: February 25 2005, 15:55   
Usually first program to write on any language is "Hello World"... Here is my version for MSX-BASIC

1 DEFSTRO:O="Obkkh'Phukc&":POKE-189,&HEE:KA=KA+1TOLEN(O):XCHR$(ASC(MID$(O,A,-NOTE))XOR7);:J:Q-&O275,201


poke-1,170
msx professional
Posts: 847
Posted: February 25 2005, 19:30   
did I tell you're all scary?

NYYRIKKI
msx master
Posts: 1474
Posted: February 25 2005, 21:25   

I must agree, that I have currently exceeded a bit even my own expectations of writing MSX-BASIC all wrong!

... but scary? Heck, this is not even close to scary yet! Other fraction of my mind is currently working with entry, that is capable of expanding it's command set, self modifying and progressive evolveing. I hope, it will finish it's job next week.

At first stage the code will start expanding the BASIC command set to be able to take over the development, then it will start adding and deleting parts of it's source untill it gains the final basic stucture. After that it starts to modify and run it self in a loop without clear preprogrammed pattern, so after this point you will not be able to know when it was started or how many generations it has "lived".

The current version has already tools to modify it self and basic understanding of it's structure, at the moment it anyway has also pretty bad self destruction habits, that slow down the development. Anyway, back to the topic... I think, that when it is released, it might be a bit scary.


 
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 Next Page )
 







(c) 1994 - 2008 MSX Resource Center Foundation. MSX is a trademark of MSX Licensing Corporation.