Results 1 to 6 of 6

Thread: converting from c to pascal :-(

  1. #1

    converting from c to pascal :-(

    Once again i find that converting code from c to pascal is a hard thing to do:
    For the efika there is an basic bootloader witch c source code, looking at it, it seems simple enough, but converting it to pascal is anohter thing.

    Here is the original: http://www.powerdeveloper.org/articl...irmwarekernels

    This is my attempt: http://www.noeska.com/downloads/newos.zip

    I hope some people here want to take a look at it and give their opinion.
    Maybe i using the wrong types or wrong procedure declerations etc.

    Another idea came to my mind:
    should i use the c loader to load my pascal code?
    How would i load the pascal code from c?

    Thanks for your answers in advance!
    http://3das.noeska.com - create adventure games without programming

  2. #2

    converting from c to pascal :-(

    Ehm sorry, wrote the answer on the wrong topic :mrgreen:
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  3. #3

    converting from c to pascal :-(

    Quote Originally Posted by {MSX}
    Ehm sorry, wrote the answer on the wrong topic :mrgreen:
    Where?
    http://3das.noeska.com - create adventure games without programming

  4. #4

    converting from c to pascal :-(

    I got to start a procedure in a pascal unit from the c loader and call from the pascal unit the fo_printf from fo.h http://www.noeska.com/downloads/newos2.tar.gz

    So i think i abandon converting the c loader source to pascal.
    http://3das.noeska.com - create adventure games without programming

  5. #5

    converting from c to pascal :-(

    Did you see the TORO operating system? I didn't check it but may be you can find it there.
    No signature provided yet.

  6. #6

    converting from c to pascal :-(

    No i did not know of toro before. It seems to be x86 coded using assembly routines. The efika is ppc (powerpc) based. So it may not be of use to me. I might learn from it what i should include in a custom rtl for the efika, thanks! But i am now already able to execute code compiled with free pascal from the c loader. I am happy with this for now.

    The hard part of getting the c loader into pascal will be getting the address of the efika bios (open firmware) via register 5 into pascal. Next hard part is getting the right record like structure for actaly calling bios functions. I myself will not put time into this subject as the c loader is capeable of starting pascal compiled code.
    http://3das.noeska.com - create adventure games without programming

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •