![]() Mov bx, 000Fh Display page BH=0, Display attribute BL=0Fh Mov ax, 0003h BIOS.SetVideoMode AH=00h, Mode 80x25 AL=3 The same applies for BX, CX, and DX registers. The integrated 8086 assemblers can generate console programs that can be executed on any computer that runs x86 machine code (Intel/AMD architecture). emu8086 is an 8086 microcontroller-based compiler. When you need to put values in byte-sized registers like AL and AH, you should strive to do so in a single operation using the word-sized AX register. Download Emulator emu8086 with license key.You also should refrain from using the loop instruction since it's not terribly fast these days.The repetition count in CX, the display page in BH, the display attribute in BL, and the column in DL are all invariant during the entire loop and thus can be placed outside of it. To get an efficient program you put as much instructions as you can outside of the loop.The basic errors in your program (all covered in comments by Ped7g) were that you only initialized the CL register as your loop counter where the loop instruction depends on the whole CX register, and that furthermore you erroneously modified it so you could use CX for a second purpose. I'm guessing you forgot to write int 10h to setup the 80x25 text video mode? ![]() With this emulator, you can also code in assembly language as it comes along with a built-in editor, which allows us to recreate a totally realistic user experience on PCs equipped with this processor. What are these instructions supposed to do? Emu8086 is an emulator that allows us to run on modern computers those programs developed for that processor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |