AMOS:Bug Bank length

From Amiga Coding
Revision as of 22:37, 20 November 2007 by Spellcoder (talk | contribs) (New page: Banks which are loaded or created with Reserve As Data or Reserve As Chip Data are saved with your AMOS sourcecode. The [[AMOSi:Len...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Banks which are loaded or created with Reserve As Data or Reserve As Chip Data are saved with your AMOS sourcecode. The =length command will return the length of these banks.


When you compile the banks are also added to the executable. However they are padding to have an even length. This isn't mentioned in the documentation and gives problems when =length is used in your program to read/write a certain position in your memorybank.


Credits

  • bug discovered by ...someone on the AMOS-list... in 1993
  • bug tested/described by Spellcoder on 20 nov 2007