Lines, reimagined

30 views
Skip to first unread message

Bill E

unread,
May 12, 2026, 7:23:10 PM (9 days ago) May 12
to [PiDP-1]
This group has gotten too quiet. So, it just came to me, how about lines done for the Type 340? A few lines of code later, done. Result? Hyperactive lines. Remember that this running on the 340 is at least 50 times faster.
Most of the code is the random number generator, Of course, if you want to try it, you'll have to use my branch. Just assemble it and go.
Bill

Lines version that uses the Type 340 display
#include <TYPE340/type340defs.ah>

// Set a vector to random directions and lengths, loop
100/
top,
    jsp random
    dac v1
    lio [prog
    dla
    jmp top

// The Type 340 program
prog, scale(1) intensity(3) next(vector)
v1, 0
    end
    halt

// Generate a random number, return it in ac as a visible vector command.
random,
    local rtn, ran
    dap rtn
    lac ran
    rar 1s
    xor [355670
    add [355670
    dac ran
    and [177777
    ior [200000
rtn, jmp .
ran, 0
    endloc

constants
start 100

Bill E

unread,
May 13, 2026, 8:42:07 PM (8 days ago) May 13
to [PiDP-1]
Here's an even more impressive and I think pretty fun lines. This one uses vcontinue, which are long vectors, to draw random vectors. Just as hyper, but more visual impact.
I've included the source file, no vids this time. If you want to try it, be sure to do a pull to get the latest and greatest Type 340, fixes an edge case with long vectors. You also should use the fixed p7simES or it might drop the ends of vectors.
Bill
newLines.am1
Reply all
Reply to author
Forward
0 new messages