| 1 | ### basictorom.tcl ### |
| 2 | # |
| 3 | # This script was developed together with Daniel Vik to have an automated tool |
| 4 | # to convert BASIC programs to ROM files. See this forum thread for more |
| 5 | # details: |
| 6 | # |
| 7 | # http://www.msx.org/forumtopic9249.html |
| 8 | # |
| 9 | # To use it, put a file 'prog.bas' in the current directory (can be either in |
| 10 | # ascii format or an already tokenized basic file). Then execute this script by |
| 11 | # using the openMSX commandline. And after a few seconds the ROM image |
| 12 | # 'prog.rom' will be generated. |
| 13 | # |
| 14 | # input: prog.bas |
| 15 | # output prog.rom |
| 16 | # start with: openmsx -script basictorom.tcl |
| 17 | # |
| 18 | # Note: This script only works on MSX machines that have a disk drive and have |
| 19 | # MSX-BASIC built-in. So for example it won't work on the default C-bios |
| 20 | # based machines. So either select a different MSX machine as your |
| 21 | # default machine, or pass the '-machine <machine-config>' as extra |
| 22 | # option when starting openMSX. |
| 23 | # |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | # don't store the settings below for future openmsx sessions |
| 68 | set save_settings_on_exit false |
| 69 | # don't show MSX screen (remove if you want to see what's going on) |
| 70 | set renderer none |
| 71 | # go as fast as possible |
| 72 | set throttle off |
| 73 | |
| 74 | # give emulated MSX some time to boot |
| 75 | after time 20 do_stuff1 |