AMOS:Bug Bank length

From Amiga Coding
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.

Tested with

  • AMOSPro V2.00 + compiler


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