Where to start? Click code examples and select Hello, world. A code example with many comments should open. All comments are green and they take up about 90% of all text, so don't be scared by this tiny "Hello Word" code. The compiled executable is only about 100 bytes long, because it uses no interrupts and has only one loop for color highlighting the text. All other code is straight-forward and writes directly to video memory. To run this example in the emulator, click emulate (or press F5). The program then attmepts to assemble and save the executable to c:\emu8086\MyBuild. If the assembler succeeds in creating the file, the emulator will also automatically load it into memory. You can then click single step (or press F8) to step through the code one instruction at a time, observing changes in registers and the emulator screen. You can also click step back (or press F6) to see what happens when reversing those changes. There are many ways to print "Hello,World" in assembly language, and this certainly isn't the shortest way. If you click examples and browse c:\emu8086\examples, you'll find HelloWorld.asm which assembles into only a 30-byte executable. Unlike the previous example which carries out each step by itself, this one is much smaller because it uses a built-in interrupt function of the operating system to write to the display.
- 1
- 粉丝: 82
- 资源: 6
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助