flat assembler
Message board for the users of flat assembler.
Index
> Main > count more than capacity |
Author |
|
revolution 20 Feb 2011, 11:46
sum(1,2,...,n)=n(n+1)/2
You want to find the point(s) where n(n+1)/2 mod 256 = 0 First solution is at 511 & 512 and then every 512 from there. 511,512,1023,1024,1535,1536,... |
|||
20 Feb 2011, 11:46 |
|
edfed 20 Feb 2011, 12:02
cool.
thanks. in fact, there is a simpler way to do the job, it exists incf instruction (to increment f register, folowed by a btfss Z flag, it an be ok to work on multibyte temporisations. i am just trying to have the hello world working with code compiled with fasm.. and it does nothing else than light the green led... even if is fore the red led ot switch on, it don't work... i am very sad because apparentlly, the macro i've writen yesterday don't give the good opcodes... |
|||
20 Feb 2011, 12:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.