;;; File: first.asm
;;; (C) 2003 Ivan Escobar, ITESM-CEM
;;; First Assembly language program
;;; Module to show basic operations of movement between registers


section .text
;; here we start the code that is going to operate

global _test  ;;; declaring global procedure name to export to C++

_test

	;eax = 44
	mov eax, 44
	
	;ebx = 3
	mov ebx, 3

	;counter = (eax+eax)*ebx
	mov ecx, eax
	add ecx, eax
	mov eax, ecx
	mul ebx
	mov ecx, eax

	ret ;return to the calling subrouting in c++
	