diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-01-09 08:11:52 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-01-09 08:11:52 -0800 |
commit | 5efca3695a1f4261020c793c8474f5d62af0b010 (patch) | |
tree | afe73e478ee0134096f432d4e26d25218e02dad5 /407print-int32-decimal-right-justified.mu | |
parent | efa6c5f44e6a0d5e0b1f16c2819be67128bf05ef (diff) | |
download | mu-5efca3695a1f4261020c793c8474f5d62af0b010.tar.gz |
7482
Diffstat (limited to '407print-int32-decimal-right-justified.mu')
-rw-r--r-- | 407print-int32-decimal-right-justified.mu | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/407print-int32-decimal-right-justified.mu b/407print-int32-decimal-right-justified.mu deleted file mode 100644 index 5cb9e8d6..00000000 --- a/407print-int32-decimal-right-justified.mu +++ /dev/null @@ -1,14 +0,0 @@ -# print 'n' with enough leading spaces to be right-justified in 'width' -fn print-int32-decimal-right-justified screen: (addr screen), n: int, _width: int { - # tweak things for negative numbers - var n-width/eax: int <- decimal-size n - var width/ecx: int <- copy _width - { - compare n-width, width - break-if->= - print-grapheme screen, 0x20 # space - width <- decrement - loop - } - print-int32-decimal screen, n -} |