Code: Select all
; Measure the code size in bytes of assembly instructions
!@@:
; Instructions here
!mov [v_size], $-@b
Debug size
Code: Select all
!@@:
!mov rax, 0
!mov [v_size], $-@b
Debug size
!@@:
!xor rax, rax
!mov [v_size], $-@b
Debug size
!@@:
!push 0
!pop rax
!mov [v_size], $-@b
Debug size