introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · introducción a...
TRANSCRIPT
![Page 1: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/1.jpg)
Introducción a masm
Comments
1. ;This entire line is a comment
2. ADD AX,BX ;comment on same line as instruction
Coding Format
The en general format an Assembler instruction is the is the following
[name] operation operand(s)
Ejem:Name Oper’s Operand
COUNTER DB 1 ;Name, operation, one operand
MOV AX,0 ;Operation, two operands
![Page 2: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/2.jpg)
Name
A name in Assembler lenguage can use the following characters:
![Page 3: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/3.jpg)
![Page 4: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/4.jpg)
![Page 5: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/5.jpg)
![Page 6: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/6.jpg)
![Page 7: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/7.jpg)
![Page 8: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/8.jpg)
![Page 9: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/9.jpg)
![Page 10: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/10.jpg)
![Page 11: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/11.jpg)
![Page 12: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/12.jpg)
![Page 13: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/13.jpg)
![Page 14: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/14.jpg)
Usando Turbo Assembler
![Page 15: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/15.jpg)
![Page 16: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/16.jpg)
![Page 17: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/17.jpg)
![Page 18: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/18.jpg)
![Page 19: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/19.jpg)
![Page 20: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/20.jpg)
Compilador modo dos usando
masm y link
![Page 21: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/21.jpg)
![Page 22: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/22.jpg)
Ejemplo
![Page 23: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/23.jpg)
![Page 24: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/24.jpg)
Compilación modo usando ml.exe
dos con errores
![Page 25: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/25.jpg)
![Page 26: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/26.jpg)
![Page 27: Introducción a masm - cs.buap.mxhilario_sm/slide/ensamblador 2012-ok/intro... · Introducción a masm Comments 1. ; ... For typical programs consisting of one module, the operand](https://reader034.vdocuments.us/reader034/viewer/2022051508/5a9e05397f8b9a29228c7dae/html5/thumbnails/27.jpg)