Loading / Saving

Home Forums Newbrain Basic Loading / Saving

Tagged: 

  • Creator
    Topic
  • #3528
    CDesp
    Keymaster
    • Topics: 15
    • Replies: 21
    • Total posts: 36
      Up
      0
      Down
      ::

      To load/save from tape 2 you can issue these commands:

      • Poke 19,2 (that sets the default loading device to tape 2) and then load/save as usual.
      • Openin#2,2 and then Load#2 this does not change the default device
      • Openout#2,2,“filename” and then Save#2 this does not change the default device

      Notes on Loading/Saving

      Some files on the Newbrain are saved with bigger buffer and those should be loaded with a special command like Load “*32” or Load “*56”. You can use the Load “*56” even if the file was saved with “*32” but not vice versa.

      You can also save your files with bigger buffer using this command Save “*32:filename” or Save “*56:filename”.

      Filenames should not have extensions.

      On the emulator these kind of files have filenames starting with 32 like “32 Monopoly.bas” so in order to load this file you need to select the file and then type Load “*32” and then Run of course.

    Viewing 2 reply threads
    • Author
      Replies
      • #3805
        loudscotsbloke
        Participant
        • Topics: 0
        • Replies: 1
        • Total posts: 1
          Up
          0
          Down
          ::

          Hi. Is there anyway to save a BASIC file as a WAV? I have written a new game, and of course the emulator saves it as a .BAS tokenised file, but I want to be able to load it on to my real Newbrain via the cassette port, so ideally need a WAV file.

        • #3806
          CDesp
          Keymaster
          Topic Author
          • Topics: 15
          • Replies: 21
          • Total posts: 36
            Up
            0
            Down
            ::

            Hi,

            No not possible. I have a project in mind to do in the future that will take a .bas file and produce a .wav file.

            The only way to transfer the file now is via serial rs232.

          • #3815
            CDesp
            Keymaster
            Topic Author
            • Topics: 15
            • Replies: 21
            • Total posts: 36
              Up
              0
              Down
              ::

              Ok i made a tool to do this. I have not tested it.

              So here it is https://newbrainemu.eu/download/bin2wave/.

               

          Viewing 2 reply threads
          • You must be logged in to reply to this topic.