Menu

submitting patches

Help
2016-07-26
2016-07-27
  • Jason Stevens

    Jason Stevens - 2016-07-26

    I have a small update, nothing major but I'm using an ancient version of EMX (0.8B) which is GCC 1.40 targeting EMX through RSXNT on Windows 10.

    I can build PDOS-32 and it executes, but when re-compiling the whole thing with:

    gcc -nostdinc -D__32BIT__ -c -I../pdpclib

    so I only pick up the pdpclib includes, not to have a polluted build, I get the following error on pos.c

    ..\src\pos.c:1040: structure has no member named `eax'
    ..\src\pos.c:1078: structure has no member named `eax'
    

    Line 1040:

        `regsout.x.eax=0;`
    

    Which is a 'union REGS regsout;'. However as defined in support.h this should be:

    union REGS
    {
        BYTEREGS h;
        WORDREGS x;
    #ifdef __32BIT__    
        DWORDREGS d;
    #endif    
    };
    

    regsout.d.eax

    etc.

    I can re-compile the OS fine, and using 'msdos' ( http://homepage3.nifty.com/takeda-toshiya/msdos/ ) I can run Turbo C on Windows and compile the whol thing. Hello World runs, and I took a simple MD5 program, and hard coded it to which file to check and that works. An ancient Infocom parser crashes, the 'dungeon' C to Fortran program crashes...

     
    • Paul Edwards

      Paul Edwards - 2016-07-27

      Thanks Jason.

      I have committed your fix to CVS.

      BFN. Paul.

      From: Jason Stevens
      Sent: Wednesday, July 27, 2016 4:49 AM
      To: [pdos:discussion]
      Subject: [pdos:discussion] submitting patches

      I have a small update, nothing major but I'm using an ancient version of EMX (0.8B) which is GCC 1.40 targeting EMX through RSXNT on Windows 10.

      I can build PDOS-32 and it executes, but when re-compiling the whole thing with:

      gcc -nostdinc -D__32BIT__ -c -I../pdpclib

      so I only pick up the pdpclib includes, not to have a polluted build, I get the following error on pos.c

      ..\src\pos.c:1040: structure has no member named eax' ..\src\pos.c:1078: structure has no member namedeax'
      Line 1040:

      `regsout.x.eax=0;`
      

      Which is a 'union REGS regsout;'. However as defined in support.h this should be:

      union REGS
      {
      BYTEREGS h;
      WORDREGS x;

      ifdef 32BIT

      DWORDREGS d;
      

      endif

      };
      regsout.d.eax

      etc.

      I can re-compile the OS fine, and using 'msdos' ( http://homepage3.nifty.com/takeda-toshiya/msdos/ ) I can run Turbo C on Windows and compile the whol thing. Hello World runs, and I took a simple MD5 program, and hard coded it to which file to check and that works. An ancient Infocom parser crashes, the 'dungeon' C to Fortran program crashes...


      submitting patches


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pdos/discussion/323501/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.

MongoDB Logo MongoDB