Check maxvalue using the length

Added a `data_items_length` variable to a new assembly program
`maxvalue-length.asm`, this allows user to define a size for the
`data_items` list so we don't have to use zero as a stop.