about summary refs log tree commit diff stats
path: root/linux/111read.subx
Commit message (Expand)AuthorAgeFilesLines
* 7842 - new directory organizationKartik K. Agaram2021-03-031-0/+438
id'>670bf6ed ^
1faea034 ^

8152b0d1 ^
d061cbff ^
8152b0d1 ^
74f1512f ^
d061cbff ^
8152b0d1 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14

                                                                                   
                                     

                                        
   
                          
               
                                     
                      



                               
# 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
}