I'm just starting to play around with this new Vectrex and was fiddling around with VIDE and one of the programming tutorials. It has you just draw a simple line, which worked fine. The suggestion was to play around with that and try different things so I attempted to draw two lines :-)

This was the first try (leaving out the equates and initialization block, etc:

draw_line: jsr waitrecal ;Reset the CRT lda #00 ;Get y ldb #00 ;Get x jsr move_pen7f_to_d ;go to (x,y) lda #$7f ;Get the Intensity jsr intensity_to_A ;Set intensity lda #00 ;Get y ldb #127 ;Get x jsr draw_to_d ;draw a line to (x,y) lda #00 ;Get y ldb #00 ;Get x jsr move_pen7f_to_d ;go to (x,y) lda #30 ;Get y ldb #00 ;Get x jsr move_pen7f_to_d ;go to (x,y) lda #30 ;Get y ldb #127 ;Get x jsr draw_to_d ;draw a line to (x,y) bra draw_line

This results in this:

So OK, I guess drawing inherently resets 0 to the previous endpoint. So I try this next:

draw_line: jsr waitrecal ;Reset the CRT lda #00 ;Get y ldb #00 ;Get x jsr move_pen7f_to_d ;go to (x,y) lda #$7f ;Get the Intensity jsr intensity_to_A ;Set intensity lda #00 ;Get y ldb #127 ;Get x jsr draw_to_d ;draw a line to (x,y) jsr waitrecal lda #30 ;Get y ldb #00 ;Get x jsr move_pen7f_to_d ;go to (x,y) lda #30 ;Get y ldb #127 ;Get x jsr draw_to_d ;draw a line to (x,y) bra draw_line

I've inserted another cal to waitrecal before doing the second line. I now get this:

OK, that has the starting point reset but why the heck is that line diagonal? I'm stumped...

Thanks in advance!