wok-6.x view linld/stuff/tobzimage.S @ rev 19114
Add shiki-colors, shiki-colors-murrine. Specify HOST_ARCH="any" on the packages containing themes only.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 07 16:09:04 2016 +0300 (2016-05-07) |
parents | df58e6c974a3 |
children | 86c9fae82f47 |
line source
1 .code16
2 .org 0
4 jmp start
5 .ascii "HdrS"
6 .word 0x200 # version
7 .long 0 # realmode_swtch
8 .word 0x1000 # start_sys_seg
9 .word kernel_version
10 .byte 0 # type of loader
11 .byte 1 # loadflags
12 .word 0x8000 # setup_move_size
13 .long 0x100000 # code32_start
14 .long 0 # ramdisk_image
15 .long 0 # ramdisk_size
16 .long 0 # bootsect_kludge
17 .word 0 # heap_end_ptr 2.01+, patched by bootloader
18 start:
19 pushf
20 cld
21 pushw %cs
22 pushw $0
23 pushaw
24 pushw %ds
25 popw %es
26 .byte 0x66, 0xB8 # movl $?, %eax
27 rep
28 movsw
29 popaw
30 iret
31 xorw %di, %di
32 pushw %es
33 pushw %di
34 stosl
35 movw $0x200, %di
36 movw %sp, %bp
37 movw $9, %cx
38 z1:
39 pushw $0
40 loop z1
41 movw $0x9301, %ax
42 cwd # %dx = -1
43 pushw %ax
44 pushw %cx
45 pushw %dx
46 pushw %cx
47 movb 0x216, %al
48 pushw %ax
49 pushw %cx
50 pushw %dx
51 movb $8, %cl
52 z2:
53 pushw $0
54 loop z2
55 movw -12(%di), %dx
56 mvlp:
57 movw %sp, %si
58 movw $0x8000, %cx
59 movb $0x87, %ah
60 int $0x15
61 incw 20(%si)
62 incw 28(%si)
63 subw $0x1000, %dx
64 ja mvlp
65 movw %bp, %sp
66 movw $0x400, %si
67 xorw %cx, %cx
68 decb -15(%di)
69 movb -15(%di), %ch
70 lret
71 kernel_version:
72 .asciz "zImage"
73 .org 512
74 oldsetup: