DEV Community

Discussion on: Video of one hour of assembly programming.

Collapse
 
juancarlospaco profile image
Juan Carlos

Nice, cool music, I dont recognize the framework macros, ASM is awesome.🙂👍

ASM is good tool with no extra fat, this is Assembly inlined on Nim lang:

func exasmple(): int {.asmNoStackFrame.} =
  asm """.intel_syntax noprefix
    mov eax, 2     
    add eax, 4     
    ret            
  """

echo exasmple() # 2 + 4 = 6