Page 1 of 2 12 LastLast
Results 1 to 10 of 36

Thread: Pas2C64

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Since I have added a WriteLn() command (for strings only ATM) to pas2c64, I decided to make a "hello world" example! LOL



    I skipped the basic loader to save some vertical space...

    It might not be the most exciting code ever, but it works <G>
    cheers,
    Paul
    Last edited by paul_nicholls; 08-02-2011 at 11:34 AM.

  2. #2
    hmmmmm.... nostalgia.. (remember of my C64 in faк far past ^_^)

    Great, keep it going !
    Theory is - when you know everything but nothing works.
    Practice is - when all works, but you don't know why.
    We combine theory and practice - nothing works and nobody knows why

  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Hmm is that PDN in the background? 1 word man: Sweet. Not M$ paint or something paid for but open source goodness I miss very much as a native app in linux, yes Pinta and others have their benefits, but its never the same is it?

    Anyway, nice work. I especially like that editor. Keep it up dude
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    Quote Originally Posted by code_glitch View Post
    Hmm is that PDN in the background? 1 word man: Sweet. Not M$ paint or something paid for but open source goodness I miss very much as a native app in linux, yes Pinta and others have their benefits, but its never the same is it?

    Anyway, nice work. I especially like that editor. Keep it up dude
    LOL Yeah, it is Paint.NET in the background - I used it for saving the image

    I have made the editor using D2010, and the TSynEdit component so I could get syntax highlighting, etc. very sweet

    cheers,
    Paul

  5. #5
    Quote Originally Posted by Darthman View Post
    hmmmmm.... nostalgia.. (remember of my C64 in faк far past ^_^)

    Great, keep it going !
    <Homer Simpson accent>MMMMMMMMMMMMM...............NOSTALGIA...... ..</Homer Simpson accent>

    haha!

    Thanks for the support

    cheers,
    Paul

  6. #6
    Cool to see someone else targeting retro hardware... I just finished a DOS game targeting a 128k 4.77mhz 8088 as the minimum spec... though I've been also working in DEFT Pascal on the TRS-80 Color Computer.

    Was there no original pascal compiler for the C64 in the first place? Admittedly, a modern optimizing compiler meant for the target system would be a huge step up (just compare TP7 to TP3) but surely there must have been SOMETHING.

    I mean, on the Coco we had three -- OS/9 Pascal (which sucked but is what most people used), DEFT Pascal (the only one that made standalone .bin files you could cloadm or loadm and exec while having access to all 64k of memory if present) and StarPAS (which was just a p-code interpreter)... surely there must have been something for the C=64.

    Don't suppose you are planning on adding VIC=20 support to that? Just thinking I've still got one here. (along with my 64K coco 1 and my Tandy 1000EX)

    Writing programs for old systems is having an interesting side effect -- at least for me... portability. Emulators are ported to pretty much every modern system, so by writing a game for an old machine, you suddenly make it available to everyone.
    The accessibility of a website from time to time must be refreshed with the blood of designers and owners. It is its natural manure

  7. #7
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    There is one interesting aspect of all this: if the super-optimized code designed for a few Mhz and KB could be 'adapted' (even if at a slight performance loss) to work with todays' PCs - imagine the speed you could pull out of it! XD It's like when I had to load DOS 7.1 on a quad core machine: basically DOS on steroids.

    Now, that has even more potential
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  8. #8
    Quote Originally Posted by deathshadow View Post
    Cool to see someone else targeting retro hardware... I just finished a DOS game targeting a 128k 4.77mhz 8088 as the minimum spec... though I've been also working in DEFT Pascal on the TRS-80 Color Computer.]
    Neat I never had a TRS-80 computer though, only the C64 (and then 128D).

    Quote Originally Posted by deathshadow View Post
    Was there no original pascal compiler for the C64 in the first place? Admittedly, a modern optimizing compiler meant for the target system would be a huge step up (just compare TP7 to TP3) but surely there must have been SOMETHING.

    I mean, on the Coco we had three -- OS/9 Pascal (which sucked but is what most people used), DEFT Pascal (the only one that made standalone .bin files you could cloadm or loadm and exec while having access to all 64k of memory if present) and StarPAS (which was just a p-code interpreter)... surely there must have been something for the C=64.]
    There were a bunch of Pascal compilers for the C64, but I wanted something native to windows, etc. that was easier to use

    It is also a fun project + diversion for me too LOL

    Quote Originally Posted by deathshadow View Post
    Don't suppose you are planning on adding VIC=20 support to that? Just thinking I've still got one here. (along with my 64K coco 1 and my Tandy 1000EX)
    I hadn't thought of VIC-20 support, but maybe I will...first I will get C64 support going

    Quote Originally Posted by deathshadow View Post
    Writing programs for old systems is having an interesting side effect -- at least for me... portability. Emulators are ported to pretty much every modern system, so by writing a game for an old machine, you suddenly make it available to everyone.
    Yeah! Emulators rock! On a nostalgia note, I do wish I had a real C64 though still though - it is what I learnt programming on part way between my 11th and 12 birthday

    Oh well...

    cheers,
    Paul

  9. #9
    Hey all,
    I hadn't worked on pas2c64 since February, so I thought I would have a bit more of a play with it. Since I have been using Lazarus 0.9.30 I thought I would have a go at converting over the program from Delphi to Lazarus using the automatic conversion.

    It actually worked perfectly!! Everything still works, even considering I am using SynEdit as the programming GUI part...I was pleasantly surprised!!

    So now I am continuing this using Lazarus now

    I am also now working on converting Delphi floating point numbers to c64 floating point numbers using this site as a basis for an algorithm I am writing:

    ftp://n2dvm.com/Commodore/Commie-CDs...e-base/197.htm

    I have a good feeling about this, so hopefully soon I will also be able to convert floating point numbers using the parser to c64 floating point format (4-byte mantissa + 1 byte exponent, ie. compressed memory version)...

    Once this works I will be able to use the C64 ROM routines to do any maths using floating point numbers!

    cheers,
    Paul
    Last edited by paul_nicholls; 08-06-2011 at 09:40 AM.

  10. #10
    Great news! Still waiting release
    Theory is - when you know everything but nothing works.
    Practice is - when all works, but you don't know why.
    We combine theory and practice - nothing works and nobody knows why

Page 1 of 2 12 LastLast

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
  •