ascii.cl: TODO: throw out the interpreter (EVIL)
This commit is contained in:
parent
4295982876
commit
fc374e0108
@ -15,7 +15,7 @@ fn n_digit(n: u32) -> char {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn in_range(num: u32, start: u32, end: u32) -> bool {
|
fn in_range(num: u32, start: u32, end: u32) -> bool {
|
||||||
(start <= i) && (i <= end )
|
(start <= num) && (num <= end )
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ascii() {
|
fn ascii() {
|
||||||
@ -28,8 +28,7 @@ fn ascii() {
|
|||||||
}
|
}
|
||||||
print(" │")
|
print(" │")
|
||||||
for col in 0..16 {
|
for col in 0..16 {
|
||||||
let i = row << 4 | col
|
print(ascii_picture(row << 4 | col))
|
||||||
print(ascii_picture(i))
|
|
||||||
}
|
}
|
||||||
println("│")
|
println("│")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user