Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: Perl Operating System

by Aristotle (Chancellor)
on Mar 26, 2004 at 06:21 UTC ( [id://339952]=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Perl Operating System
in thread Perl Operating System

Though it would look less awful if you had used a string output function instead of one-character-at-a-time I/O. And been smaller, too. (Also: eww, DOS.)

Makeshifts last the longest.

Replies are listed 'Best First'.
Re: Re^3: Perl Operating System
by DrHyde (Prior) on Mar 26, 2004 at 09:20 UTC
    Can we also fight over AT&T-style vs Intel-style mnemonics?
Re: Re^3: Perl Operating System
by tachyon (Chancellor) on Mar 28, 2004 at 06:33 UTC

    Ahhhhh!!! Assembler GOLF! 21 bytes.... OK so I admit I did not try to make assembler look good. I have always liked the thought that C is a language with all the power of assembler, but with all the user friendliness of ..... assembler.

    jmp start msg db "ASM?$" start: mov ah,09 mv dx,offset msg int 21h mov ah,4ch mov al,00 int 21h



      Oh my, it has been so many years…
      mov ah, 09h mov dx, offset msg int 21h ret msg db "ASM?$"
      (The ret is a CP/M remnant. There's an int 20h at the top of the program segment prefix and DOS puts a 0000 word on the stack before it passes control to the program. We are now deep in the dark ages of microcomputer "operating systems".)

      Makeshifts last the longest.

        When VB came out I lamented ignoring my once well honed BASIC skills. With Delphi I almost convinced myself that Pascal was not really as bad as I remembered. Stirring up Abigail-II has been the only *honest* use of very rusty ASM skills in nearly 20 years :-)



Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://339952]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-07-16 19:48 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.