An introduction to assembly language learning and Makefile

Source: Internet
Author: User

Continue to develop
; hello-OS; TAB=4ORG0x7c00; Indicate the loading address of the program; The following is a description of the floppy disk in standard FAT12 format JMP entry DB0x90DB"HELLOIPL"; ScanDisk's name DW +; The size of each sector (sector) DB1; The size of the cluster (cluster) DW1            ; Start position of fat DB2            ; Number of fat DW224; The size of the root directory DW2880; The size of the disk DB0xf0; type of disk DW9            ; The length of the Fat DW -; 1 tracks (track) has several sector DW2: Number of heads DD0; not available partition DD2880; rewrite disk size DB0,0,0x29        ; DD0xFFFFFFFF        ; DB"Hello-os"        ; Disk name DB"FAT12"; disk format name Resb -; 18 bytes first; program Core Entry:mov AX,0; initialize register mov ss,ax mov SP,0x7c00mov ds,ax mov es,ax mov si,msgputloop:mov al,[si] ADD SI,1to Si plus 1 CMP AL,0JE fin MOV AH,0x0e; display a text MOV BX, the; Specify the character color INT0x10; Call the graphics card bios in JMP putloopfin:hlt; Let the CPU stop, wait for instructions. JMP fin ; Infinite Loop msg:db0x0a,0x0a; 2-time line break DB"Hello, World"DB0x0a; line break DB0Resb0x7dfe-$; 0x7dfe and current byte fill DB with 0x000x55,0xaaThe following is the output DB of the part outside of ScanDisk0xf0,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00Resb4600DB0xf0,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00Resb1469432

An introduction to assembly language learning and Makefile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.