[syslinux] SYSLINUX COM32 example in assembly (NASM)
G. Murali Krishnan
gmkrishn at cs.uchicago.edu
Sun Dec 1 08:26:43 PST 2002
I would start with the hello.c in the examples directory (hello2 does not
seem to work), and compile it into assembly code (gcc -S).
- Murali
> Hello
>
> Where can I get example in assembly, using COM32 API ?
>
> I'm trying to make simple "Hello World" using COM32, but this code does not
> works 8-(
>
> org 0x101000 ; this number I get from comboot.doc
>
> _start:
> mov ecx,msge-msg
> mov ebx,msg
> mov ah,0x02
> .L:
> mov dl, byte [ebx]
> inc ebx
> int 0x21
> loop .L
>
> .Z: jmp .Z ; \infty loop
>
> msg: db "Hello World !"
> msge:
>
> END
>
>
> What Do I do incorrect ?
>
> PS: I use NASM 0.98
>
>
> _______________________________________________
> SYSLINUX mailing list
> Submissions to SYSLINUX at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.
>
################################################################
# Ry 254, Ryerson Hall, # Ph : +1 773 702-1031 (Off) #
# 1100 E 58th Street # +1 773 575-4836 (Cell) #
# Chicago, IL - 60637, # URL : http://www.g-murali.com #
# USA. # email: gmkrishn at cs.uchicago.edu #
################################################################
More information about the Syslinux
mailing list