Bios Call Help

Yasin Yenidunya machka at gmail.com
Sun Mar 28 06:29:09 PDT 2010


hi all,

i have a boot code like below and i would like to add e820 bios call to
print memory information to screen. first i add 0xe8 to ah then 20 to al and
i call  int 0x15 but it gives error on int. does anyone has any idea? or
guide me?

regards

-- 
Yasin Yenidünya machka at gmail.com


code;



        .text
        .globl    start
        .code16

start:
        jmpl    $0x0,    $code
msg:
        .string    "Test\x0"

code:
        movw    $0xb800,%ax
        movw    %ax,    %es
        xorw    %ax,    %ax
        movw    %ax,    %ds

        movw    $msg,    %si
        xorw    %di,    %di



        cld
        movb    $0x07,    %al
1:
        cmp    $0,    (%si)
        je    1f
        movsb
        stosb
        jmp    1b
1:        jmp    1b

.org    0x1fe, 0x90
.word    0xaa55
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100328/0d20a12e/attachment.html>


More information about the lfs-support mailing list