diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-01-17 17:00:44 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-01-17 17:00:44 -0800 |
commit | 4b62edd8a63cfdde37b0537c9be1e91062bb2892 (patch) | |
tree | aa714446d5890b25348c54c6f5fe9a7277165f28 /chessboard-cursor.mu | |
parent | 7990aea904686272fb50bb81cea8f60716901b3a (diff) | |
download | mu-4b62edd8a63cfdde37b0537c9be1e91062bb2892.tar.gz |
578 - switch to non-polymorphic 'print' functions
Also clean up various prints from last few commits. As a convention, for debugging we always print directly to host.
Diffstat (limited to 'chessboard-cursor.mu')
-rw-r--r-- | chessboard-cursor.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chessboard-cursor.mu b/chessboard-cursor.mu index 53fa3268..e8c13e78 100644 --- a/chessboard-cursor.mu +++ b/chessboard-cursor.mu @@ -57,7 +57,7 @@ (break-if done?:boolean) ; print rank number as a legend (rank:integer <- add row:integer 1:literal) - (print-primitive screen:terminal-address rank:integer) + (print-integer screen:terminal-address rank:integer) (print-primitive-to-host ((" | " literal))) ; print each square in the row (col:integer <- copy 0:literal) @@ -66,7 +66,7 @@ (break-if done?:boolean) (f:file-address <- index b:board-address/deref col:integer) (s:square <- index f:file-address/deref row:integer) - (print-primitive screen:terminal-address s:square) + (print-primitive-to-host s:square) (print-primitive-to-host ((" " literal))) (col:integer <- add col:integer 1:literal) (loop) |