Difference between revisions of "AMOS:Bug Bank length"

From Amiga Coding
Jump to: navigation, search
(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...)
 
 
Line 3: Line 3:
  
 
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 [[AMOSi:Length|=length]] is used in your program to read/write a certain position in your memorybank.
 
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 [[AMOSi:Length|=length]] is used in your program to read/write a certain position in your memorybank.
 +
 +
 +
==Tested with==
 +
* AMOSPro V2.00 + compiler
  
  

Latest revision as of 22:39, 20 November 2007

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


Credits

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