Skip to content

Commit

Permalink
More 80 column fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Plummer authored and Dave Plummer committed Sep 27, 2023
1 parent 3ee5320 commit f95a6de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
23 changes: 16 additions & 7 deletions petrock.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ drawMiddleLine:
sta (zptmp),y
iny
.ifdef COL80
lda CharDefs + visualDef::VLINE1MIDDLESYMBOL ; Draw center pieces on 80 column screens only
lda CharDefs + visualDef::HLINE1MIDDLESYMBOL ; Draw center pieces on 80 column screens only
sta (zptmp),y
iny
sta (zptmp),y
Expand Down Expand Up @@ -1442,7 +1442,7 @@ lineLoop: lda zptmp ; Advance zptmp by one screen line down
;-----------------------------------------------------------------------------------
; X Cursor Y Pos
; Y Cursor X Pos
; (NOTE Reversed)
; (NOTE Reversed) (No really, pay attention, they're BACKWARDS!)
;-----------------------------------------------------------------------------------

PlotEx:
Expand Down Expand Up @@ -1715,27 +1715,36 @@ SetNextStyle: lda NextStyle ; Take the style index and multiply by 2
; and vertical lines needed to form a box. Finally, the characters to use for bands
; of height 1 are also specified.


SkinnyRoundStyle: ; PETSCII screen codes for round tube bar style
.if C64
.byte 85, 73, 74, 75, 66, 66, 74, 75, 32, 32, 32, 32, 32
; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.byte 85, 73, 74, 75, 66, 66, 74, 75, 32, 32, 0, 0, 0
.endif
.if PET
; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.byte 85, 73, 74, 75, 93, 93, 74, 75, 32, 32, 67, 70, 32
.endif

DrawSquareStyle: ; PETSCII screen codes for square linedraw style
.byte 111, 112, 76, 122, 101, 103, 76, 122, 32, 32, 247
; TL TR BL BR V1 V2
.byte TOPLEFTSYMBOL, TOPRIGHTSYMBOL, BOTTOMLEFTSYMBOL, BOTTOMRIGHTSYMBOL, VLINE1SYMBOL, VLINE2SYMBOL
; H1 H2 1L 1R TM BM H1
.byte BOTTOMLEFTSYMBOL, BOTTOMRIGHTSYMBOL, HLINE1SYMBOL, HLINE2SYMBOL, HLINE1SYMBOL, HLINE2SYMBOL, 32

BreakoutStyle: ; PETSCII screen codes for style that looks like breakout
.if C64
.byte 239, 250, 239, 250, 239, 250, 239, 250, 239, 250, 32, 32, 32
; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.byte 239, 250, 239, 250, 239, 250, 239, 250, 239, 250, 0, 0, 0
.endif
.if PET
.byte 228, 250, 228, 250, 228, 250, 228, 250, 228, 250, 32, 32, 32
; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.byte 228, 250, 228, 250, 228, 250, 228, 250, 228, 250, 228, 228, 228
.endif

CheckerboardStyle: ; PETSCII screen codes for checkerboard style
.byte 102, 92, 102, 92, 102, 92,102, 92, 102, 92, 32, 32, 32
; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.byte 102, 92, 102, 92, 102, 92, 102, 92, 102, 92, 102, 102, 102

; Lookup table - each of the above mini tables is listed in this lookup table so that
; we can easily find items 0-3
Expand Down
4 changes: 2 additions & 2 deletions petrock.inc
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ VUSYMBOL = 244 ; Symbol for a filled VU square

; Classic Linedraw style


; TL TR BL BR V1 V2 H1 H2 1L 1R TM BM H1
.struct visualDef
TOPLEFTSYMBOL .byte
TOPRIGHTSYMBOL .byte
Expand All @@ -180,7 +180,7 @@ VUSYMBOL = 244 ; Symbol for a filled VU square
ONELINE2SYMBOL .byte
TOPMIDDLESYMBOL .byte
BOTTOMMIDDLESYMBOL .byte
VLINE1MIDDLESYMBOL .byte
HLINE1MIDDLESYMBOL .byte
.endstruct
VISUALDEF_SIZE = .sizeof(visualDef)

Expand Down

0 comments on commit f95a6de

Please sign in to comment.