|
|
@ -212,7 +212,7 @@ handle_input_after: |
|
|
|
; -> e: y position of the cursor |
|
|
|
; -> e: y position of the cursor |
|
|
|
; <- [current_guess] |
|
|
|
; <- [current_guess] |
|
|
|
; <- [current_char] |
|
|
|
; <- [current_char] |
|
|
|
; <- [guess_attempts] |
|
|
|
; <- [guesses] |
|
|
|
select_letter: |
|
|
|
select_letter: |
|
|
|
push hl |
|
|
|
push hl |
|
|
|
push af |
|
|
|
push af |
|
|
@ -235,7 +235,7 @@ select_letter: |
|
|
|
jp .return |
|
|
|
jp .return |
|
|
|
|
|
|
|
|
|
|
|
.normal_letter: |
|
|
|
.normal_letter: |
|
|
|
ld hl, guess_attempts |
|
|
|
ld hl, guesses |
|
|
|
ld a, [current_guess] |
|
|
|
ld a, [current_guess] |
|
|
|
ld b, 5 |
|
|
|
ld b, 5 |
|
|
|
call multiply_ab |
|
|
|
call multiply_ab |
|
|
@ -265,14 +265,14 @@ select_letter: |
|
|
|
; Delete the last entered letter |
|
|
|
; Delete the last entered letter |
|
|
|
; <- [current_guess] |
|
|
|
; <- [current_guess] |
|
|
|
; <- [current_char] |
|
|
|
; <- [current_char] |
|
|
|
; <- [guess_attempts] |
|
|
|
; <- [guesses] |
|
|
|
delete_letter: |
|
|
|
delete_letter: |
|
|
|
push hl |
|
|
|
push hl |
|
|
|
push af |
|
|
|
push af |
|
|
|
push bc |
|
|
|
push bc |
|
|
|
push de |
|
|
|
push de |
|
|
|
|
|
|
|
|
|
|
|
ld hl, guess_attempts |
|
|
|
ld hl, guesses |
|
|
|
ld a, [current_guess] |
|
|
|
ld a, [current_guess] |
|
|
|
ld b, 5 |
|
|
|
ld b, 5 |
|
|
|
call multiply_ab |
|
|
|
call multiply_ab |
|
|
|