-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
This isn't really necessary in normal programs but could be helpful for 10 liners. No idea what it would take to do it :)
I often find myself wanting to check a range of numbers (eg. check if a screen character is an enemy or a wall etc.) . The code usualy goes something like:
IF PEEK(S)>10 AND PEEK(S)<15......
It would save a fair bit of space if I could do:
IF PEEK(S)=11 TO 14
Compressed the lines are:
IFP.(S)>10ANDP.(S)<15
IFP.(S)=11TO14
This would save 7 bytes (8 if you could use a sign instead of TO). My current 10 liner uses this 6 times so that could be a saving of 48 characters.
There's probably a very good reason why this isn't possible, but it would be great if it could be done.