Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;basic example using SASM software
- %include "io.inc"
- section .data
- myvalue: equ 4 ;you also can use 0100b has binary or 4h has hexadecimal
- section .text
- global CMAIN
- CMAIN:
- ;write your code here
- xor eax, eax ;clear eax
- GET_DEC 4, eax ;get the number from input
- add eax, myvalue ;add 4
- PRINT_DEC 4, eax ;print again
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement