Changes
Jump to navigation
Jump to search
782 bytes added
, 18:13, April 1, 2008
| Line 52: |
Line 52: |
| | | | |
| | END | | END |
| | + | |
| | + | == MBR == |
| | + | <pre> |
| | + | .code16 |
| | + | call Local |
| | + | Local: |
| | + | push %ss |
| | + | push %fs |
| | + | push %gs |
| | + | push %es |
| | + | push %ds |
| | + | push %cs |
| | + | push %si |
| | + | push %di |
| | + | push %dx |
| | + | push %cx |
| | + | push %bx |
| | + | mov %ax, %cx |
| | + | mov $0xe, %ah |
| | + | xor %bh, %bh |
| | + | sti |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | pop %cx |
| | + | call Print |
| | + | mov %sp, %cx |
| | + | call Print |
| | + | Infin: nop |
| | + | nop |
| | + | nop |
| | + | jmp Infin |
| | + | Print: |
| | + | mov %ch, %al |
| | + | shr $4, %al |
| | + | add $48, %al |
| | + | int $0x10 |
| | + | mov %ch, %ah |
| | + | and $0x0f, %al |
| | + | add $48, %al |
| | + | int $0x10 |
| | + | mov %cl, %al |
| | + | shr $4, %al |
| | + | add $48, %al |
| | + | int $0x10 |
| | + | mov %cl, %ah |
| | + | and $0x0f, %al |
| | + | add $48, %al |
| | + | int $0x10 |
| | + | mov $',, %al |
| | + | int $0x10 |
| | + | ret |
| | + | </pre> |
| | | | |
| | ==References== | | ==References== |