View Single Post
Old Jun 1st, 2006, 6:31 PM   #6
gryfang
Programmer
 
gryfang's Avatar
 
Join Date: May 2006
Location: Ohio
Posts: 36
Rep Power: 0 gryfang is on a distinguished road
Send a message via AIM to gryfang
The subtraction is cheating a LOT.

Adding and subtracting is done in Binary, by dealing with it in Decimal you actually have to increment, decriment, add, and subtract in addition to the comparing (which is done in the hardware and XORs, ORs, ANDs, etc.)

To improve your code I would suggest working in Binary and figuring out how to ADD without using addition (look at your else cases).
__________________
--------------------
LOAD "*" ,8,1

God bless
- Gryfang
gryfang is offline   Reply With Quote