|
In this section we offer some articles, how to program some specific parts of a game or the TI92!
We will add articles, so revisit this section!
Optimizing of the code
First, replacing of instructions
move. #0,{...} |
clr. {...} |
move. #-1,{...} |
st. {...} |
lea variable(PC),-(a7) |
pea variable(PC) |
cmp. #0,{...} |
tst. {...} |
move. #{Byte number},{...} |
moveq. #{Byte number},{...} |
Another optimizing tip is to contain a lot of variables in registers for faster access, use long operations (they are faster).
Copying of a memory area to another area, you should use long moves and the rest use word and byte moves
When you program a game for example, use a very fast sprite routine (The spriteroutine from Jimmy Mardell for example)
Find the most timeintensive parts in your program and and optimize them, or send the source to Assembly-92 list and they could probably help you.
Sorry, but this section will be advanced
|
|
|