diff --git a/main.usm b/main.usm index f604701..e4bba97 100644 --- a/main.usm +++ b/main.usm @@ -162,13 +162,15 @@ RTN ( draw-note draws a byte as a note name and number on the screen ) @draw-note ( byte ) + DUP #0c DIV #01 SUB STH ( stash octave ) #0c MOD #00 SWP ;notes ADD2 LDA DUP #7f AND ;draw-char JSR2 #80 AND ,&else JCN ( if the high bit is unset ) - #0d ;draw-char JSR2 ( draw a dash ) + #00 ;draw-char JSR2 ( draw a space ) ,&then JMP &else #03 ;draw-char JSR2 ( otherwise draw a # ) &then + STHr ;draw-nibble JSR2 ( unstash and draw octave number ) RTN