flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
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,... |
|||
![]() |
|
edfed
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... |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.