i dare you to make this code smaller
This commit is contained in:
parent
d3d7dd43e8
commit
7f6495f744
25
boot.s
25
boot.s
|
@ -7,30 +7,25 @@ NUMSEG equ (1993/512)+1 ; filesize is 1993 bytes
|
||||||
|
|
||||||
mov ax, 0x100
|
mov ax, 0x100
|
||||||
mov ss, ax
|
mov ss, ax
|
||||||
mov ds, ax
|
|
||||||
mov es, ax
|
mov es, ax
|
||||||
mov gs, ax
|
mov gs, ax
|
||||||
mov fs, ax
|
mov fs, ax
|
||||||
mov bp, 0xF000
|
xor bp, bp
|
||||||
mov sp, bp
|
mov sp, bp
|
||||||
|
push ax
|
||||||
mov bx, 0x100
|
push ax
|
||||||
|
push ax
|
||||||
|
mov bx, ax
|
||||||
mov al, NUMSEG
|
mov al, NUMSEG
|
||||||
inc ah
|
inc ah
|
||||||
mov cl, ah
|
|
||||||
xor ch, ch
|
|
||||||
xor dh, dh
|
|
||||||
int 13h
|
|
||||||
|
|
||||||
xor cx, cx
|
xor cx, cx
|
||||||
mov ds, cx
|
mov ds, cx
|
||||||
mov word [ds:0x21*4], int21
|
mov word [ds:0x21*4], int21
|
||||||
mov word [ds:0x21*4+2], 0
|
mov word [ds:0x21*4+2], cx
|
||||||
|
mov cl, ah
|
||||||
inc ch
|
xor dh, dh
|
||||||
mov ds, cx
|
int 13h
|
||||||
push 0x100
|
pop ds
|
||||||
push 0x100
|
|
||||||
retf
|
retf
|
||||||
|
|
||||||
int21:
|
int21:
|
||||||
|
|
Loading…
Reference in New Issue