Skip to content

Commit

Permalink
Update docs, fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rbergen committed Sep 28, 2023
1 parent 35dfdcf commit e4a764f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The application logic is implemented in [petrock.asm](petrock.asm). It pulls in

The application draws 16 vertical bands of the spectrum analyzer which can be up to 16 high. The program first clears the screen, draws the border and text, fills in color, and the main draw loop calls DrawBand for each one in turn. Each frame draws a new set of peaks from the PeakData table, which has 16 entries, one per band. That data is replaced either by a new frame of demo data or an incoming serial packet and the process is repeated, running at about 40 fps.

Color RAM can be filled with different patterns by stepping through the visual styles with the C key, but it is not drawn each and every frame.
Color RAM can be filled with different patterns by stepping through the visual styles with the C key, but it is not drawn each and every frame.

Basic bar draw is to walk down the bar and draw a blank (when above the bar), the top of the bar, then the middle pieces, then the bottom. A visual style definition is set that includes all of the PETSCII chars you need to draw a band, like the corners and sides, etc. It can be changed with the S key.

Expand All @@ -26,6 +26,7 @@ Concerning handling of serial input:
In the [`settings.inc`](settings.inc) file, a number of symbols are defined that can be used to configure the build:
|Name|Possible values|Mandatory|Meaning|
|-|-|-|-|
|COL80|0 or 1|No|Set to 1 if your machine is fitted with an 80 column screen.|
|BSNSS_KBD|0 or 1|Yes, on the PET|Set to 0 to indicate your PET has a graphical keyboard. Set to 1 to indicate it has a business keyboard. This setting is ignored on the C64.|
|C64|0 or 1|No|Configure build for the Commodore 64. Exactly one of C64 or PET **must** be defined to equal 1.|
|DEBUG|0 or 1|Yes|Set to 1 to enable code that only is included for debug builds.|
Expand Down Expand Up @@ -57,7 +58,7 @@ With the cc65 toolkit installed and in your PATH, you can build the application
```text
cl65 -o petrock.prg --asm-define C64=1 -t none petrock.asm
```

## Loading and running

Assuming the petrock.prg file is on a disk in device 8, the spectrum analyzer display can be loaded using the following command:
Expand Down
2 changes: 1 addition & 1 deletion settings.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ifdef COL80
.if COL80
BSNSS_KBD = 1 ; If 80 columns is flagged via command-line, assume 80 columns
BSNSS_KBD = 1 ; If 80 columns is flagged via command-line, assume we have a business keyboard
.endif
.else
COL80 = 0 ; Set to 1 if you use a PET with an 80 column display. Default is 0 (40 columns)
Expand Down

0 comments on commit e4a764f

Please sign in to comment.