DEV Community

Discussion on: Daily Challenge #75 - Set Alarm

Collapse
 
brightone profile image
Oleksii Filonenko • Edited

x86-64 assembly (NASM syntax):

section .text
global set_alarm
set_alarm:
    mov rax, rsi
    not rax
    and rax, rdi
    ret