ascii.cl: TODO: throw out the interpreter (EVIL)

This commit is contained in:
John 2024-07-27 20:00:22 -05:00
parent 4295982876
commit fc374e0108

View File

@ -15,7 +15,7 @@ fn n_digit(n: u32) -> char {
}
fn in_range(num: u32, start: u32, end: u32) -> bool {
(start <= i) && (i <= end )
(start <= num) && (num <= end )
}
fn ascii() {
@ -28,8 +28,7 @@ fn ascii() {
}
print(" │")
for col in 0..16 {
let i = row << 4 | col
print(ascii_picture(i))
print(ascii_picture(row << 4 | col))
}
println("│")
}