Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/20/04 16:43
Read: times


 
#83534 - Data limited, not code
Responding to: ???'s previous message
Steve,
First, thanks. Good to feel a tap on my shoulder :-)

The code is not limited by the XRAM size, as you can write the code directly to FLASH (hence code limited to between $8000 and bootloader beginning). However, XRAM limits the data when the program is running.

Of course, you can add extra SRAM as many you want up to 32kB.

-------
I made the modifications simply because I had no board with external SRAM and EPROM on hand and wanted to try the BASIC52 I downloaded as soon as possible. Then, I thought on how the problem with small SRAM can be circumvented, and I expanded the GOSUB and GOTO so that it refers not only to program line, but also to position in ROM. In this way you can write short routines and burn them into FLASH, "linking" them together with such statements. While working, this is a true pain to plan bigger programs. I tried to run the lunar lander in this way; and although I succeeded (in 5 parts), it was a whole night of debugging - absolutely no fun.

Later I realized that there is no reason not to treat the FLASH as RAM, so I simply tried, and you can test the result.

Unfortunately, only the Atmel/Temic variety of RD2 requires no extra RAM to reprogram a FLASH page (they did't publish details, but I suspect they have a 128-bytes long RAM buffer hidden from the processor core, where they store data while erasing a page); so modifying it for the AD, Philips, SST and Winbond chips would not be so easy, but perhaps viable. The AD-sort has a 64 bytes long page, so if time and circumstances permit, I will try that first.


Jan Waclawek


List of 30 messages in thread
TopicAuthorDate
Basic52            01/01/70 00:00      
   I remember that            01/01/70 00:00      
      Fullscreen editor            01/01/70 00:00      
         ...and in a full circle            01/01/70 00:00      
            Of course.            01/01/70 00:00      
         Line numbers and editors            01/01/70 00:00      
         MSX micros            01/01/70 00:00      
         BASIC with no line numbers            01/01/70 00:00      
            Impressive!            01/01/70 00:00      
               Line number-less BASIC            01/01/70 00:00      
                  labels?            01/01/70 00:00      
            still don' know how            01/01/70 00:00      
               Look to VB            01/01/70 00:00      
               No line numbers example            01/01/70 00:00      
                  Now this is clear.            01/01/70 00:00      
   A little Christmas gift            01/01/70 00:00      
      Basic52. Thank you.            01/01/70 00:00      
         it would, if            01/01/70 00:00      
            Take it as a toy.            01/01/70 00:00      
            Simulator and IDE too ?            01/01/70 00:00      
   Nice job !            01/01/70 00:00      
      Data limited, not code            01/01/70 00:00      
         Philips Flash write            01/01/70 00:00      
            Re: Philips Flash write            01/01/70 00:00      
               Internal XRAM            01/01/70 00:00      
                  Re: Internal RAM            01/01/70 00:00      
                     More Internal XRAM            01/01/70 00:00      
                        uPSD 3xxx not really suitable            01/01/70 00:00      
                           uPSD 3xxx            01/01/70 00:00      
                     superseed, not obsolete            01/01/70 00:00      

Back to Subject List