Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Mmiscool
#27402 Hello,

I have a program that makes extensive use of Strings with a capital S.

Is there a way to implement any kind of garbage collection or dynamic memory restructuring so that things keep running smoothly with the strings changing size all the time?
User avatar
By mrburnette
#27406
Is there a way to implement any kind of garbage collection or dynamic memory restructuring so that things keep running smoothly with the strings changing size all the time?


From the days of Bill Gates and Ric Weiland BASIC port from 8080 to 6502, garbage collection has been implemented within BASIC itself. I can remember my old PET 2001 4K machine having pregnant pauses during Star Trek. To my knowledge, you will need to supervise your own routines.

http://www.easy68k.com/paulrsm/6502/INTLST.TXT
Code: Select all3650  * tkn $42 (
  3660  *   string array is destination of the data
  3670  *   A$(1)="HELLO"
  3680
  3690  HE121 ;VO
  3700    JSR HE118
  3710    STA NOUNSTKL,X
  3720    CLC
  3730    SBC NOUNSTKH,X
  3740    JMP HE102
  3750  *>
  3760
  3770  HE12C
  3780    LDY #ErrMsg03 ;"MEM FULL"
  3790    BNE HE106 ;=>always



Ray