Dmitry Ponyatov (dim@)
2002-Dec-01 11:09 UTC
[syslinux] SYSLINUX COM32 example in assembly (NASM)
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
G. Murali Krishnan
2002-Dec-01 16:26 UTC
[syslinux] SYSLINUX COM32 example in assembly (NASM)
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 # ################################################################