Search found 1598 matches

by CoBB
Sun 13 Jan, 2008 8:19 am
Forum: Announce Your Projects
Topic: [BASIC] Dystopia
Replies: 22
Views: 36933

I think a combination of the first and the third would look best, by superimposing the reflection on the water pattern. This would basically mean that you’d use a darker pattern, but still not a complete fill, where both images are black.
by CoBB
Mon 31 Dec, 2007 7:40 pm
Forum: Announce Your Projects
Topic: Greyscale tetris for ti-83\84
Replies: 20
Views: 36754

The culprit must be the printf() function, which is infamous for its size. It must be avoided at all costs.
by CoBB
Thu 20 Dec, 2007 3:29 pm
Forum: Off Topic
Topic: Google is your friend :D
Replies: 14
Views: 10077

Re: Google is your friend :D

driesguldolf wrote:[offtopic] WTF happend to the tag? ...[/offtopic][/quote] You have t ... 28 and %29.
by CoBB
Fri 14 Dec, 2007 7:51 am
Forum: Programming Help
Topic: [ASM] Compare 16-bit registers?
Replies: 27
Views: 34705

Perhaps we could check the sign flag. It should be M if BC >= DE and P otherwise, right? I haven't thought that one through at all - it's just a guess, so I may be wrong. That wouldn’t be enough, because B can be so much greater than D that the difference goes below -128. You’d have to check the ov...
by CoBB
Thu 13 Dec, 2007 10:24 pm
Forum: Programming Help
Topic: [ASM] Compare 16-bit registers?
Replies: 27
Views: 34705

qarnos wrote:Another way of doing it byte by byte:

Code: Select all

ld a, e
sub c
ld a, d
sbc a, b
Carry flag set if BC > DE.
Zero flag set if BC == DE.
Indeed, I knew I was overlooking something trivial. :lol: That’s what happens when you stop dealing with low-level stuff...
by CoBB
Thu 13 Dec, 2007 3:19 pm
Forum: Programming Help
Topic: [ASM] Compare 16-bit registers?
Replies: 27
Views: 34705

What about doing it byte by byte?

Code: Select all

ld a,d
cp b
jp c,bcIsBigger
jp nz,deIsBigger
ld a,e
cp c
jp c,bcIsBigger
jp nz,deIsBigger
<they are equal here>
by CoBB
Thu 13 Dec, 2007 9:56 am
Forum: Staff Side Projects & Featured Projects
Topic: [Featured][Dev] PindurTI (Best Thread 2005)
Replies: 1356
Views: 569980

CoBB, PindurTI is losing in popularity against WabbitEmu... :( Why is that a problem? Wabbit is superior in practically every respect. :) I'll hack it as a second backend into my new Linux frontend for WabbitEmu, so I don't give either project an advantage, but if PTI wants to survive you really ne...
by CoBB
Tue 11 Dec, 2007 8:54 pm
Forum: Announce Your Projects
Topic: Reviving the Vera project!
Replies: 129
Views: 203753

qarnos wrote:Don't release buggy software. :mrgreen:
And then comes the deeply philosophical question whether something is a bug or a feature. ;)
by CoBB
Tue 11 Dec, 2007 4:19 pm
Forum: Announce Your Projects
Topic: Reviving the Vera project!
Replies: 129
Views: 203753

The only viable software solution would be to use an interrupt handler to check the state of the program counter, as GuillaumeH described. Well, if you set the interrupt to the highest speed, you can regain control about once in 1000-2000 instructions (10-11k cc). That might catch some nastiness, b...
by CoBB
Fri 07 Dec, 2007 11:23 am
Forum: Latenite, Brass and EarlyMorning
Topic: Latenite 2: Directory structure and project management.
Replies: 38
Views: 51324

So, you're not going to work with Java because apearently everybody hates it, which leaves .NET -- and hoping that Mono will get there "some day" Unless the app heavily relies on IE, in which case that ‘someday’ is pushed even farther... I'll just have to keep working with a simple editor...
by CoBB
Fri 07 Dec, 2007 10:02 am
Forum: Latenite, Brass and EarlyMorning
Topic: Latenite 2: Directory structure and project management.
Replies: 38
Views: 51324

Same goes for Java as a language and as a system. I don't really understand how so many people can hate it so much :) For instance, deploying Java programs at different machines is often impossible without recompilation. I’m teaching Java in this semester (and did last year too), and you have no id...
by CoBB
Thu 06 Dec, 2007 11:16 am
Forum: Programming Help
Topic: [ASM] How to ld hl,sp?
Replies: 13
Views: 19219

Timendus wrote:Edit: Never mind, really stupid question :)
Q 16-bit register: bc, de, hl/ix/iy, sp
Sorry about the obscure indirections in the reference, it’s to make sure that only people who understand pointers will make use of it. :mrgreen:
by CoBB
Sat 01 Dec, 2007 5:22 pm
Forum: Program Ideas
Topic: Z80 peephole optimizer
Replies: 8
Views: 15421

GuillaumeH wrote:I was not clear sorry: I was talking about annotations written by the programmer.
Yes, that’s how I understood it.
by CoBB
Fri 30 Nov, 2007 3:53 pm
Forum: Program Ideas
Topic: Z80 peephole optimizer
Replies: 8
Views: 15421

I thought the same thing as CoBB, but to solve this, one can imagine source code annotations to mark areas that must not be rewritten (SMC parts mostly). That’s unfortunately a chicken and egg problem of some sort. Since the optimiser has limited means to find out what effects you want to preserve,...
by CoBB
Fri 30 Nov, 2007 11:34 am
Forum: Program Ideas
Topic: Z80 peephole optimizer
Replies: 8
Views: 15421

This can be tricky though, because the side effects might change in surprising ways, and such changes might break the program if the code relies on a certain behaviour of flags for instance, not to mention SMC (which is most likely not an issue with a C compiler though)...