Search found 531 matches

by sorchard
Thu Aug 14, 2014 8:08 am
Forum: Dragon General
Topic: asm6809 2.3 released
Replies: 11
Views: 5147

Re: asm6809 2.3 released

sixxie wrote:I think what I want next is a "foreach" command...
I like your thinking... it would enable loop unrolling on an industrial scale.
by sorchard
Wed Aug 13, 2014 2:01 pm
Forum: Dragon General
Topic: asm6809 2.3 released
Replies: 11
Views: 5147

Re: asm6809 2.3 released

Mr 6, you're a star! Conditional assembly is the icing on the cake. You are forgiven for breaking my macros ;) I wondered how tricky it might be to implement a switch or pseudo op that makes symbols have file scope instead of global unless otherwise specified. That could be a tasty cherry to put on ...
by sorchard
Mon Aug 11, 2014 10:31 pm
Forum: Dragon General
Topic: asm6809 2.2 released
Replies: 5
Views: 2823

Re: asm6809 2.2 released

Macros take all the misery out of making tea... align macro org * + (-* & (&1-1)) endm If you have the above macro defined in your source then you can have statements like the following: align 32 This will advance the pc (program counter) to the next 32 byte boundary or leave it where it is if alrea...
by sorchard
Thu Aug 07, 2014 3:24 pm
Forum: Dragon General
Topic: asm6809 2.2 released
Replies: 5
Views: 2823

Re: asm6809 2.2 released

Excellent :) This has rapidly become my favourite assembler. Incidentally I've been using the following in a macro to do alignment: org * + ((-*) & (&1-1)) I wondered if anyone knows of a less ugly way of doing it. I've seen a couple of examples that look nicer but fail when the pc is already aligned.
by sorchard
Wed Aug 06, 2014 8:01 pm
Forum: Hints and Tips
Topic: How does RND() and TIMER work?
Replies: 13
Views: 10675

Re: How does RND() and TIMER work?

If I recall correctly, the RND() function is very predictable, and always gives the same sequence each time the machine is powered up, so I don't think there is any connection to the IRQ or timer. Programs that used random numbers often had a statement like A = RND(TIMER) somewhere to mix things up ...
by sorchard
Thu Jul 31, 2014 1:09 pm
Forum: Uploads
Topic: Flagon Bird
Replies: 82
Views: 109029

Re: Flagon Bird

Sweet! You've gone viral :D

Also an opportunity for some friendly 6502/6809 rivalry :twisted:
by sorchard
Tue Jul 29, 2014 6:33 pm
Forum: Dragon General
Topic: disassembled Dragon 32 ROM ?
Replies: 48
Views: 20244

Re: disassembled Dragon 32 ROM ?

Are the addresses in "sorchard" "out of alignment" or does the perl scripts something wrong or have i use them wrong? It's nothing you or I have done. The problem is because the disassembly you're using is out of sync with the instructions. There should be the instruction LDD #$0034 at address $bb3...
by sorchard
Sat Jul 26, 2014 9:02 pm
Forum: Dragon General
Topic: Cool display hack
Replies: 8
Views: 4217

Re: Cool display hack

I'm starting to prefer the colour version too. The mono version is nice and sharp but the colour one does indeed have a 3D look to it. To me it kind of looks like massively speeded up construction of roads, bridges and curious buildings. Then again I have been staring at these for far too long and m...
by sorchard
Fri Jul 25, 2014 9:26 pm
Forum: Dragon General
Topic: Cool display hack
Replies: 8
Views: 4217

Re: Cool display hack

I've had a go at making a colour version. I found it pretty hard to control the colour in a way that preserves the effect of the mono version and doesn't degenerate into a noisy mess. I'll play with it a little more to see if it can be improved... I've also included an updated mono version that has ...
by sorchard
Thu Jul 24, 2014 10:08 pm
Forum: Dragon General
Topic: Cool display hack
Replies: 8
Views: 4217

Cool display hack

This is for fans of display hacks...

I discovered it while playing around with the well known 'munching squares' algorithm. I find it strangely compelling because it rewards you with some surprisingly intricate patterns if you keep watching.