| ... | ... |
@@ -29,7 +29,7 @@ |
| 29 | 29 |
#0fa7 .System/b DEO2 |
| 30 | 30 |
|
| 31 | 31 |
( load font ) |
| 32 |
- #4000 .File/length DEO2 |
|
| 32 |
+ #6000 .File/length DEO2 |
|
| 33 | 33 |
;font-path-large .File/name DEO2 |
| 34 | 34 |
;font-data .File/load DEO2 |
| 35 | 35 |
( draw label ) |
| ... | ... |
@@ -51,6 +51,28 @@ |
| 51 | 51 |
|
| 52 | 52 |
BRK |
| 53 | 53 |
|
| 54 |
+@draw-uf1 ( x* y* text* color -- ) |
|
| 55 |
+ |
|
| 56 |
+ STH |
|
| 57 |
+ SWP2 .Screen/y DEO2 |
|
| 58 |
+ SWP2 DUP2 .Screen/x DEO2 SWP2 |
|
| 59 |
+ &loop |
|
| 60 |
+ LDAk |
|
| 61 |
+ DUP #0a ! ,&no-linebreak JCN |
|
| 62 |
+ ( move down ) STH OVR2 .Screen/x DEO2 STHr |
|
| 63 |
+ ( incr y ) .Screen/y DEI2 #0010 ++ .Screen/y DEO2 |
|
| 64 |
+ POP ,&continue JMP &no-linebreak |
|
| 65 |
+ ( get addr ) STHk TOS #0008 ** ;font-data #0100 ++ ++ .Screen/addr DEO2 |
|
| 66 |
+ ( get width ) STHr TOS ;font-data ++ LDA TOS |
|
| 67 |
+ ( draw ) STHkr .Screen/color DEO |
|
| 68 |
+ ( use width ) .Screen/x DEI2 ++ .Screen/x DEO2 |
|
| 69 |
+ &continue |
|
| 70 |
+ ( incr addr ) #0001 ++ |
|
| 71 |
+ LDAk ,&loop JCN |
|
| 72 |
+ POP2 POP2 POPr |
|
| 73 |
+ |
|
| 74 |
+RTN |
|
| 75 |
+ |
|
| 54 | 76 |
@draw-uf2 ( x* y* text* color -- ) |
| 55 | 77 |
|
| 56 | 78 |
STH |
| ... | ... |
@@ -160,10 +182,10 @@ RTN |
| 160 | 182 |
79 $1 |
| 161 | 183 |
|
| 162 | 184 |
@font-path-large |
| 163 |
- "projects/fonts/diamond20.uf3 $1 |
|
| 185 |
+ "projects/fonts/geneva24.uf3 $1 |
|
| 164 | 186 |
@font-path-medium |
| 165 | 187 |
"projects/fonts/venice14.uf2 $1 |
| 166 | 188 |
@font-path-small |
| 167 |
- "projects/fonts/terminal12.uf2 $1 |
|
| 189 |
+ "projects/fonts/newyork12.uf2 $1 |
|
| 168 | 190 |
|
| 169 | 191 |
@font-data |
| 170 | 192 |
\ No newline at end of file |