Merge branch 'devel'

This commit is contained in:
neza 2023-03-17 19:15:03 +03:00
commit f538cd3d87
3 changed files with 6 additions and 5 deletions

View File

@ -26,7 +26,8 @@ conv:
leave
ret
.bss
//buf: .space 24 #min 21
.data
#buf: .space 24 #min 21
bye: .ascii "It was "
bye_len = . - bye

View File

@ -25,7 +25,7 @@ _start:
mov %eax, -4(%rbp)
movl $0, -8(%rbp)
.l3: addl $1, -8(%rbp)
.l1: addl $1, -8(%rbp)
call scan
cmpl %eax, -4(%rbp)
je .eq
@ -37,12 +37,12 @@ _start:
mov $mo_len, %esi
mov $mo, %rdi
call say
jmp .l3
jmp .l1
.le: mov $le_len, %esi
mov $le, %rdi
call say
jmp .l3
jmp .l1
.eq: mov $won_len, %esi
mov $won, %rdi

View File

@ -52,7 +52,7 @@ scan:
ret
.data
prom: .ascii "enter your number:\n"
prom: .ascii "enter your number: "
prom_len = . - prom
err: .ascii "you are wrong, try again;\n"
err_len = . - err