Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extern printf
- global main
- section .data
- j dq 0
- format dq '%d', 10, 0
- tab dq _tab1, _tab2, _def, _tab4, _def
- zma dd 1
- section .text
- main:
- mov rax,[zma]
- cmp rax, 1
- jb _def
- cmp rax, 4
- ja _def
- jmp qword [tab + 8*rax - 8]
- _tab1:
- mov dword [j], 1
- jmp _koniec
- _tab2:
- mov dword [j], 4
- jmp _koniec
- _tab4:
- mov dword [j], 23
- jmp _koniec
- _def:
- mov dword [j], 5
- jmp _koniec
- _koniec:
- mov rbx, format
- mov rsi, rsi
- mov rsi, [j]
- xor rax, rax
- call printf
- xor rsi, rsi
- mov rax, 1
- xor rbx, rbx
- int 80h
- ~
- ~
- -- WPROWADZANIE -- 46,1 Wszystko
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement