AMOS:Bug Commands after data statements

From Amiga Coding
Jump to: navigation, search

Commands After Data Statements Crash AMOS

This will crash AMOS:

        Data 10,10,20,34,56,98,34,21 : Rem data for image play

This is perfectly fine:

        Rem data for image play
        Data 10,10,20,34,56,98,34,21

NB: Data statements must also be listed before any procedures in your program otherwise the Editor will think they don't exist! For this reason it is best to use Data statements as a temporary measure when programming and put the data into an AMOS Bank once all the data is complete.