Search found 1514 matches
- Thu 17 Sep, 2009 6:32 pm
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37261
Re: [Java] Nodes (Circularly Linked Lists)
Ah well, no offense, but you're really reinventing the wheel here, using factoradic numbers is very easy and efficient and guarantees that you will in fact test every possible permutation and never more than once If you really want to continue this way I will try to think of an answer, but I have to...
- Thu 17 Sep, 2009 2:49 pm
- Forum: Programming Help
- Topic: [Java] Nodes (Circularly Linked Lists)
- Replies: 27
- Views: 37261
Re: [Java] Nodes (Circularly Linked Lists)
You can use brute force no matter how you store your node-order, it just affects the speed.
Personally, I would use factoradic numbers for a brute force search (because they take less bookkeeping, and you can can increment them to get the next permutation)
Personally, I would use factoradic numbers for a brute force search (because they take less bookkeeping, and you can can increment them to get the next permutation)
- Fri 11 Sep, 2009 1:33 pm
- Forum: Programming Help
- Topic: [General] Designing Programs with Physics
- Replies: 15
- Views: 29893
Re: [General] Designing Programs with Physics
That animation doesn't look exactly right to me - it seems as though the ball initially accelerates off the ground
- Sat 01 Aug, 2009 7:14 am
- Forum: Staff Side Projects & Featured Projects
- Topic: [Staff][Dev] GL 2D Game Engine
- Replies: 29
- Views: 70049
Re: [Staff][Dev] GL 2D Game Engine
That assumes your page is known at compile time or you use SMC, and if you go down that road you could just as well do: SwapAppPages: in (6),a label_hack = $ + 1 xor 69^69 (Your applicationg page ^ the other page) out (6),a ret Just write the correct value into label_hack when your app starts..
Re: upload
"How much" is it started? Do you even have an OS? If you have an OS, well, I don't know then, but if you're booting straight into your code.. IIRC it starts up in real mode (which should be its only mode) with paging disabled at the address 0xFFFFFFF0 (if it's anything like a x86 with a nu...
- Fri 17 Jul, 2009 2:31 am
- Forum: Programming Help
- Topic: [Paper like thing?] Please review and criticize :)
- Replies: 1
- Views: 8776
[Paper like thing?] Please review and criticize :)
It's all about a paper-like thingy whatever it is that I wrote, not for any specific purpose unless it didn't fail as much as I thought it did.. (unlikely.. ) So, I know I failed epically, I bet some of the "facts" in it are not even true, that's why I would really appreciate it if some of...
- Tue 14 Jul, 2009 3:33 pm
- Forum: Programming Help
- Topic: [TI ASM] IM 2 randomness.
- Replies: 11
- Views: 24398
Re: [TI ASM] IM 2 randomness.
I suspect it's some value left on the bus that gets messed around with a bit or something like that..
- Mon 13 Jul, 2009 2:39 am
- Forum: General TI Discussion
- Topic: Where to start for application programming?
- Replies: 6
- Views: 17560
Re: Where to start for application programming?
No, the reason for it is that the application executes from the same place as that it would be changing, and there is no atomic "change page and jump" so it would go wrong in either of 2 ways: 0) it would change the page first, but then it would end up at some random location and crash 1) ...
- Sat 11 Jul, 2009 1:37 am
- Forum: Programming Help
- Topic: [TI ASM] IM 2 randomness.
- Replies: 11
- Views: 24398
Re: [TI ASM] IM 2 randomness.
I can't find my USB cable anymore, otherwise I would test it as well. But that would be on a TI-84+ and you already tested that, so I wouldn't have added that much anyway. Unless it differs per model of course.
- Wed 08 Jul, 2009 1:27 pm
- Forum: Programming Help
- Topic: [TI ASM] Optimizations
- Replies: 69
- Views: 76465
Re: [TI ASM] Optimizations
Hm ok, I compared it to: DE_Times_A: ; HL = DE × A LD HL, 0 ; Use HL to store the product LD B, 8 ; Eight bits to check _loop: RRCA ; Check least-significant bit of accumulator JR NC, _skip ; If zero, skip addition ADD HL, DE _skip: SLA E ; Shift DE one bit left RL D DJNZ _loop RET (asm in 28 days, ...
- Wed 08 Jul, 2009 12:11 pm
- Forum: Programming Help
- Topic: [TI ASM] Optimizations
- Replies: 69
- Views: 76465
Re: [TI ASM] Optimizations
So, now for a little cc analysis. * one iteration of the old version takes 45 or 51 cc's (unless it is the last, then it's 5 less) * (3*X)-3 cc's are added in the new version where X is the number of iterations * 45*(8-X) cc's are saved where X is the number of iterations * in the worst case, X=8 an...
- Tue 07 Jul, 2009 5:24 pm
- Forum: Programming Help
- Topic: [TI ASM] Optimizations
- Replies: 69
- Views: 76465
Re: [TI ASM] Optimizations
Amazing that I never thought of this before, but in a multiplication you can actually stop after the operand that you are shifting out to test the bits becomes zero (not when , but after , very important difference) because you will never add anything to the result from that point onwards. It makes ...
- Tue 07 Jul, 2009 2:18 pm
- Forum: Programming Help
- Topic: Can not sign apps - retrieving COM class factory failed.
- Replies: 10
- Views: 19682
Re: Can not sign apps - retrieving COM class factory failed.
How would I set that up with latenite/brass? Just add it in the build file?
- Tue 07 Jul, 2009 2:02 pm
- Forum: Programming Help
- Topic: Can not sign apps - retrieving COM class factory failed.
- Replies: 10
- Views: 19682
Re: Can not sign apps - retrieving COM class factory failed.
Oh I already did it the "hard" way (CFF Explorer, manually edited the flags)
But it didn't help - it's running as 32bit process but I still get the error
edit: doh didn't think of that, will fix brass now..
edit2: Ok we have a win!
thanks
But it didn't help - it's running as 32bit process but I still get the error
edit: doh didn't think of that, will fix brass now..
edit2: Ok we have a win!
thanks
- Tue 07 Jul, 2009 1:45 pm
- Forum: Programming Help
- Topic: Can not sign apps - retrieving COM class factory failed.
- Replies: 10
- Views: 19682
Re: Can not sign apps - retrieving COM class factory failed.
Hm 64bit, would that break it? I suppose it could..
edit: would it be fixed if I ran LateNite in 32bit mode?
edit2: no that didn't work..
edit: would it be fixed if I ran LateNite in 32bit mode?
edit2: no that didn't work..