Quote:
Originally posted by V_RocKs
Do you have a hello world program for me in ASM?
|
Code:
[BITS 16] ;16 bit code gen
[ORG 0100H] ;start address for com file
[SECTION .text] ;code portion
START:
mov dx, hellomsg ;load the address
mov ah, 9 ;func 9 displays to stdout
int 21H ;call to dos
mov ax, 04c00H ;exits prog
int 21H ;return control to os
[SECTION .data] ;section containing data
hellomsg db "Hello World!", 13, 10, "$" ;push the msg
id definately do it in php. its much easier that way. if you are concerned about extra overhead, use the zend optimizer (
www.zend.com). that is written by the people who wrote the php/zend engine, zeev suraski and andi gutmans. it will increase the performance of your php scripts greatly. plenty of info on the zend site.