Support newlines. Looks like we pasted the input from the browser window
during the pairing session.
This commit is contained in:
Kartik K. Agaram 2021-06-15 20:35:43 -07:00 committed by Kartik Agaram
parent 03e6248c14
commit b28899fe37
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ fn main -> _/ebx: int {
break-if-=
var next_digit/eax: int <- read_digit input_stream_addr
var next_digit/eax: int <- copy next_digit
# hacky newline check
compare next_digit, 0
break-if-<
{
compare this_digit, next_digit