Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2019-12-02
08:15:40
 Re: Assembly: fast plot and line algorithms for plus/4

Yeah, align 256 just aligns to the next 256 byte boundary. This is a nice way of making the code memory location independent, but it's easy to get around that as KiCHY explained. (If your code ends at let's say $1234, align 256 would continue from $1300, so you can do that manually instead.)

You didn't explicitly specify where you want to draw the plots and lines, but I'm going to assume on a graphics screen.

However, if you want to draw them in a charset (which would be perfect for demos), there's source code available. All my demos have their source released (with the hopes that someone will learn from them or use them), and two of them have fast line drawing code implemented. Check LOD Is Back (d_vector.asm) or Crackers' Demo 5 (line.asm). I use AS65 as the assembler.

This is more tricky; but you could try to disassemble maybe Botticelli or Vector Victory, both have line drawing routines.



Back to top


Copyright © Plus/4 World Team, 2001-2024