.486 .model flat, stdcall option casemap :none include \masm32\include\windows.

inc include \masm32\macros\macros.asm include include include include \masm32\include\masm32.inc \masm32\include\gdi32.inc \masm32\include\user32.inc \masm32\include\ ernel32.inc \masm32\lib\masm32.lib \masm32\lib\gdi32.lib \masm32\lib\user32.lib \masm32\lib\ ernel32.lib

; create 32 bit code ; 32 bit memory model ; case sensitive ; always first ; MASM support macros

i dd 5 .code start: ciclo: add esi,i dec i jnz ciclo print str$(esi) exit end start ; Tell MASM where the program ends ____________________________________________________.486 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\macros\macros.asm include include include include \masm32\include\masm32.inc \masm32\include\gdi32.inc \masm32\include\user32.inc \masm32\include\ ernel32.inc \masm32\lib\masm32.lib \masm32\lib\gdi32.lib \masm32\lib\user32.lib \masm32\lib\ ernel32.lib ; create 32 bit code ; 32 bit memory model ; case sensitive ; always first ; MASM support macros ; Tell MASM where the code starts ; The CODE entry point to the program

x dd 0 a dd 1

 

includelib includelib includelib includelib .data

 

 

includelib includelib includelib includelib .data

 

lib includelib \masm32\lib\gdi32. create 32 bit code .lib . Tell MASM where the code starts .lib includelib \masm32\lib\ ernel32.486     .model flat. 32 bit memory model option casemap :none .sval(input("introduce eun numero")) ciclo2: mov a.inc include \masm32\include\gdi32.data a dd 1 .a print chr$("x") print str$(a) print chr$("=") print str$(EBX) print chr$(10) .b dd 3 i dd 0 .asm include \masm32\include\masm32.b ciclo: print str$(esi) print chr$("/") print str$(edi) print chr$(" ".inc includelib \masm32\lib\masm32. always first .code start: .10) add esi. case sensitive include \masm32\include\windows.lib includelib \masm32\lib\user32.code start: MOV EDI.inc include \masm32\include\ ernel32.sval(input("introduce eun numero")) MOV ESI.a mov edi. The CODE entry point to the program MOV x.3 add edi.10 .1 ciclo: print str$(EDI) MOV EBX.EDI IMUL EBX.inc include \masm32\include\user32.inc include \masm32\macros\macros. MASM support macros .sval(input("introduce un numero ")) mov esi. brinca linea inc a cmp a.4 dec x jnz ciclo end start ________________________________________________________________ . stdcall .

always first . MASM support macros         .lib .a print chr$("*") print str$(a) print chr$("=") print str$(edi) print chr$(10) inc a cmp a. always first .asm include \masm32\include\masm32.inc include \masm32\include\user32.model flat.inc include \masm32\include\ ernel32. create 32 bit code .Jle ciclo inc edi cmp edi. MASM support macros .sval(input("Da un numero")) ciclo: mov edi. 32 bit memory model option casemap :none .486 .10 jle ciclo exit end start ___________________________________________________.esi print str$(esi) imul edi.lib includelib \masm32\lib\ ernel32.inc include \masm32\include\gdi32.model flat.486 . create 32 bit code .inc include \masm32\include\gdi32. stdcall .data a dd 1 .esi Jle ciclo2 exit end start exit end start ___________________________________________________ . case sensitive include \masm32\include\windows. 32 bit memory model option casemap :none .inc include \masm32\macros\macros.inc includelib \masm32\lib\masm32.code start: mov esi.inc include \masm32\macros\macros.lib includelib \masm32\lib\ ernel32.lib includelib \masm32\lib\gdi32.inc includelib \masm32\lib\masm32.lib includelib \masm32\lib\user32. stdcall .inc include \masm32\include\user32.lib includelib \masm32\lib\gdi32.asm include \masm32\include\masm32.lib .inc include \masm32\include\ ernel32.lib includelib \masm32\lib\user32. case sensitive include \masm32\include\windows.

inc include \masm32\include\user32. always first .model flat.inc includelib \masm32\lib\masm32. MASM support macros     .inc include \masm32\include\gdi32.data a dd 0 b dd 1 x dd 3 y dd 4 m dd 7 n dd 9 .sval(input("Numero 1: ")) mov edi.sval(input("Numero ")) the program mov esi.edi jle ciclo exit end start _______________________________________________________ .code .inc include \masm32\include\ ernel32. 32 bit memory model option casemap :none .code start: mov esi. The CODE entry point to .486 .asm include \masm32\include\masm32.data a dd 1 .lib includelib \masm32\lib\user32.lib .lib includelib \masm32\lib\gdi32. case sensitive include \masm32\include\windows..esi print str$(esi) imul ebx.m ciclo: ciclo1: print str$(x) print chr$("/") print str$(y) print chr$(10) .inc include \masm32\macros\macros. Tell MASM where the code starts start: mov ebx.a print chr$("*") print str$(a) print chr$("=") print str$(ebx) print chr$(10) inc a cmp a. create 32 bit code .lib includelib \masm32\lib\ ernel32.sval(input("Numero 2: ")) ciclo: mov ebx. stdcall .

data a itm0 itm1 itm2 itm3 itm4 itm5 itm6 itm7 itm8 itm9 array dd dd dd dd dd dd dd dd dd dd dd dd dd i dd . create 32 bit code . 32 bit memory model option casemap :none .itm7.lib \masm32\lib\ ernel32.inc \masm32\include\user32.ebx print str$(esi) print chr$("/") print str$(n) print chr$(10) imul esi.lib \masm32\lib\gdi32.itm2.inc inc inc inc inc inc cmp x x y y y b b. stdcall .2 inc n inc n inc n inc b cmp b. MASM support macros .itm1.486 .inc include \masm32\macros\macros.itm9 0 .lib 0 0 1 6 3 4 5 6 7 8 9 itm0.asm include include include include \masm32\include\masm32.itm4 itm5.inc \masm32\include\ ernel32. always first . Tell MASM where the code starts .itm3.lib \masm32\lib\user32.code   includelib includelib includelib includelib   .inc \masm32\lib\masm32.itm8.inc \masm32\include\gdi32.model flat.ebx jle ciclo exit end start ________________________________________________________________________________ __________-.itm6. case sensitive include \masm32\include\windows.

itm6.itm3. The .lib \masm32\lib\gdi32.inc include \masm32\macros\macros.array mov edi.model flat.4 inc i cmp i.486 . 32 bit memory model option casemap :none .0 ciclo: .itm7 i dd 0 .lib \masm32\lib\user32.inc \masm32\include\user32.inc \masm32\lib\masm32. create 32 bit code .sval(input("introduce tamaño menor a 10")) CODE entry point to the program mov esi.itm4 dd itm5. always first . Tell MASM where the code starts start: .asm include include include include \masm32\include\masm32.ebx jl ciclo print str$(edi) exit end start _______________________________________________________________________ . case sensitive include \masm32\include\windows.array mov ebx.[esi] add esi.start: MOV ebx. stdcall .lib \masm32\lib\ ernel32.itm1.inc \masm32\include\ ernel32. The CODE entry point to the program mov esi.0 mov edi.inc \masm32\include\gdi32.itm2.print chr$(10) add edi.data itm0 itm1 itm2 itm3 itm4 itm5 itm6 itm7 a dd dd dd dd dd dd dd dd dd array dd itm0.1 ciclo: print str$([esi]) print chr$(10)   includelib includelib includelib includelib   .lib 0 2 1 5 1 2 5 2 9 .print str$([esi]) . MASM support macros .code .

model flat.[esi] add esi. Tell MASM where the code starts .4 imul edi.4 inc i cmp i.inc include \masm32\include\gdi32.a3.486 .4 jl ciclo print chr$("la suma de las pociciones impares es: ") print str$(ebx) print chr$(10) print chr$("la multiplicación de las pociciones pares es: ") print str$(edi) exit end start ___________________________________________________________ . 32 bit memory model option casemap :none .[esi] add esi.arr add edi.asm include \masm32\include\masm32. MASM support macros     .code start: mov edi. create 32 bit code . create 32 bit code .inc include \masm32\include\ ernel32.model flat.lib .inc include \masm32\macros\macros.add ebx. case sensitive include \masm32\include\windows.a4 i dd 0 .a2.lib includelib \masm32\lib\ ernel32. 32 bit memory model option casemap :none .12 ciclo: print str$([edi]) print chr$(10) sub edi.inc include \masm32\include\user32. stdcall . always first .486 .lib includelib \masm32\lib\user32. Tell MASM where the program ends ______________________________________________________________________________ . case sensitive . The CODE entry point to the program .4 inc i cmp i.inc includelib \masm32\lib\masm32.lib includelib \masm32\lib\gdi32. stdcall . 4 jl ciclo exit end start .data a1 dd 1 a2 dd 3 a3 dd 6 a4 dd 7 arr dd a1.

lib \masm32\lib\ ernel32.inc \masm32\include\gdi32.code start: mov esi.data a1 dd 6 a2 dd 7 a3 dd 8 a4 dd 9 ar1 dd a1.a2.inc \masm32\include\user32.ar2 add edi.inc \masm32\include\ ernel32.asm include include include include \masm32\include\masm32.0 mov eax.4 jl ciclo exit end start   includelib includelib includelib includelib   .4 sub edi.lib .a4 b1 dd 4 b2 dd 7 b3 dd 2 b4 dd 8 ar2 dd b1.inc include \masm32\macros\macros.[edi] print str$(eax) print chr$(10) add esi.ar1 mov edi. MASM support macros .[esi] imul eax. always first .lib \masm32\lib\user32.b3.lib \masm32\lib\gdi32.b2.b4 i dd 0 .12 add esi.a3.4 inc i cmp i.inc \masm32\lib\masm32.include \masm32\include\windows.1 ciclo: imul eax.