Firefox Only. If you cannot understand Chinese, please use left select box (google translate) to translate.
1 .code16 2 .text 3 mov %cs,%ax 4 mov %ax,%ds 5 mov %ax,%es 6 mov $0xB800, %ax 7 mov %ax, %gs 8 mov $0x0, %ax 9 mov %ax, %es10 movb $0x42, %es:0 # move immediate value (0x42 = 'B') to address 0000:0000, es -> 01112 movb %es:0, %al13 mov $0x0c, %ah # red color14 mov %ax, %gs:(0)1516 mov $2, %edi1718 mov $0x41, %al19 mov %ax, %gs:(%edi)2021 mov $BootMessage, %bx22 movb %ds:1(%bx), %al23 movb 1(%bx), %al24 mov %ax, %gs:(4)2526 movb BootMessage, %al27 mov %ax, %gs:(6)2829 jmp .30 DispStr:31 mov $BootMessage, %ax32 mov %ax,%bp33 mov $16,%cx34 mov $0x1301,%ax35 mov $0x00c,%bx36 mov $0,%dl37 int $0x1038 ret39 BootMessage:.ascii "Hello, OS world!"4041 .org 51042 .word 0xaa5543
張貼意見
0 意見:
張貼意見