in reply to Re: Perl Operating System
in thread Perl Operating System
C might be a horrible language......there's no real alternative to C
MOV AH,02 MOV DL,"A" INT 21h MOV DL,"S" INT 21h MOV DL,"M" INT 21h MOV DL,"?" INT 21h MOV AH,04Ch MOV AL,00 INT 21h
When you look at the alternative C starts to look pretty damn good! The only advantage of ASM is that the binaries tent to be tiny ie 24 bytes for that example as opposed to 36K for the same thing compiled in C using cl.exe:
perl -e "print pack'H*','b402b241cd21b253cd21b24dcd21b23fcd21b44cb000c +d21'" > asm.com
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Operating System
by Aristotle (Chancellor) on Mar 26, 2004 at 06:21 UTC | |
by DrHyde (Prior) on Mar 26, 2004 at 09:20 UTC | |
by tachyon (Chancellor) on Mar 28, 2004 at 06:33 UTC | |
by Aristotle (Chancellor) on Mar 29, 2004 at 07:04 UTC | |
by tachyon (Chancellor) on Mar 29, 2004 at 11:10 UTC |