Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've read that large bits of it were written in 68k assembly too, so those parts might be responsible for the crashiness.


You can't write systems programs in Pascal without escape-to-assembly. My first big 'C' project was a significant quality improvement over the Pascal it replaced, partly because of this.


Funny I managed to do that in Turbo Pascal.

Also C standard library cannot be implemented without using Assembly, unless one makes use of extensions not defined in ANSI C.


You mean you managed with assembly, right? We were able to Vastly reduce the assembler footprint when using 'C'.


No I managed to do that with Turbo Pascal.

If I was talking about inline Assembly, which Turbo Pascal supported and to this day still isn't part of ANSI C, I would have said so.

The only times I actually was forced to use inline Assembly was to optimize graphics rendering and create a mouse device driver.

Both of them were a one time project.

Once upon a time I used to have some fun asking C devs for features not available in Turbo Pascal, while at the same time showing off all the safety and large project features that Turbo Pascal had and C to this day still lacks.

Back on those MS-DOS and Windows 3.x days there wasn't any feature that C compilers had and Turbo Pascal didn't had a similar feature.


How would you do an INT 21 call? It's been too long; I don't remember that being possible except as either just assembler or inline assembler.


With the MsDos procedure.

    program demo;
    uses Dos;
    
    var
        regs : Registers;
    
    begin
        regs.ah := $02;
        regs.dl := $07;
        MsDos (regs);  { Beep! }
    end.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: