basic commands cost

moninos

New Member
My beloved 08m2 program space is is filling up. I looked around but could not find a table or list of the basic command with their respective cost in term of memory space
Is there such a list somewhere?
thanks
 

mrburnette

Senior Member
My beloved 08m2 program space is is filling up. I looked around but could not find a table or list of the basic command with their respective cost in term of memory space
Is there such a list somewhere?
thanks
I have not seen one either; however, in PE you can open a new window (blank) and then push "Syntax" and you will note that a blank program requires 3 bytes. Now, type any instruction and press Syntax to note the usage.

This is especially useful when you are trying to determine which code to utilize when there are more than one way to code a feature.

Example: (remember to add 3 bytes overhead):
bo = 1 ... 2 bytes
w0 = 65000 ... 4 bytes
sertxd (b0) ... 2 bytes
sertxd (w0) ... 2 bytes

etc.

- Ray
 

moninos

New Member
Yes I have been doing that but it is tedious.
Maybe I will compile such a list
Also a list of program space saving technique would be nice. for instance which type of loops is less hungry, what instructions are best for standard purpose etc
 
Top