Shop OBEX P1 Docs P2 Docs Learn Events
C64 Screen demo... - Page 2 — Parallax Forums

C64 Screen demo...

2»

Comments

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-19 19:02
    IIRC, isn't PAL support only a matter of timing changes?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BaggersBaggers Posts: 3,019
    edited 2008-01-19 20:23
    you also need to Alternate the Phase, hence the title "P"hase "A"lternating "L"ine [noparse]:D[/noparse]
  • BamseBamse Posts: 561
    edited 2008-01-21 02:20
    OBC, feel free to use and modify the code...
    I'm using this driver as a base for GridRunner and if I do any updates it will be to the Grirunner code...

    Baggers,
    Would it be a simple change to make this driver to work with PAL ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2008-01-21 08:21
    Bamse, no, I'll see if I can make changes to that driver to get it to work with PAL too, but I'm a tad busy at the mo [noparse]:([/noparse] as I couldn't convert the Parallax drivers to do it, as you have the font in the cog too.
  • BaggersBaggers Posts: 3,019
    edited 2008-01-21 11:17
    I can do a quick Hub-RAM version if you want, which will be PAL/NTSC capable ( PAL to a degree... before it starts another war lol )

    Baggers.
  • Ym2413aYm2413a Posts: 630
    edited 2008-01-21 12:26
    This looks cool! [noparse]:)[/noparse]
    Screen is dead on and looks like the real thing.

    Any idea's for what this will be used for? [noparse];)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Share the knowledge: propeller.wikispaces.com
    Lets make some music: www.andrewarsenault.com/hss

  • BamseBamse Posts: 561
    edited 2008-01-21 16:01
    Baggers,
    If it's not a simple fix, don't put any effort into it...
    I don't have a PAL TV so I would be able to use it anyway... wink.gif

    Ym2413a,
    It is used in my GridRunner game...
    This was more a test to see if I could get it to work...
    Special thanks goes to Baggers who helped me out with that last little code snippet that got everything to work... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2008-01-21 16:25
    No worries Bamse, glad to help you out [noparse]:)[/noparse] glad you got it working.
  • BamseBamse Posts: 561
    edited 2008-01-25 03:15
    I was finally able to do "open heart" surgery on my C64 and switch out the hot memory chip...
    Well, turns out that the "new" chip is overheating as well and the screen is still dead so it's probably something else...

    I better get back programming on GridRunner and finish it up so I can start working on a C64 emulator... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-25 04:31
    Just tell me you are going to start Gridrunner with the 64 boot screen and a slow:

    LOAD"GRIDRUNNER",8,1
    LOADING {brief pause}
    READY.
    RUN

    [noparse]:)[/noparse]

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BamseBamse Posts: 561
    edited 2008-01-25 06:06
    Sounds like a good idea... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2008-01-25 09:21
    Hey Oldbit, I guess you liked the LOAD "3DMAZE" bit on 3D Monster Maze too then? lol

    but yeah Bamse, you have to do the LOAD"GRIDRUNNER",8,1 bit for authenticity [noparse]:D[/noparse]
  • BamseBamse Posts: 561
    edited 2008-01-26 06:26
    It's been like 15 years since I gave up my C64 so I don't remember all the details... scool.gif
    Please have a look at it and let me know what you think...
    I'm not really into 100% accuracy, more of a cool nostalgic look...
    I modified the driver to reload the border color more frequent so I could do the flashing border.

    As you guys said, it just had to be done... tongue.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2008-01-26 10:42
    Excellent Bamse [noparse]:)[/noparse]
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-26 21:30
    Strange, the old changes for getting to run on the Protoboard don't work.. What changed in the video driver besides the added font?

    OBC

    Edit:
    I moved the font into the last release of your C64 screen driver and made the edits. That worked.
    It really looks great!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

    Post Edited (Oldbitcollector) : 1/26/2008 9:38:50 PM GMT

  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-26 21:38
    Would you mind sharing the details on how you are securing the fonts from the actual games?
    I've got a ton of C64 font files, I'd love to know how to get them converted so other could use them.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BamseBamse Posts: 561
    edited 2008-01-26 23:05
    OBC,

    For BAM_GridRunner_Graphic_DRV_03.spin, I added part of the C64 font as characters 64-127...
    And placed a few more "rdbyte NTSC_Border_Color, NTSC_Border_Color_ptr" in the frame_loop.
    I needed to read the border color more frequently to get the flashing effect...
    Between BAM_GridRunner_Graphic_DRV_01.spin, and BAM_GridRunner_Graphic_DRV_02.spin, I made modifications
    to pass a pointer to the background color rather than a value, that way you can change the background after the driver started...

    To get the fonts from C64 I did a hack in Java.
    It's been different for all three fonts I got, the Original C64 font, the ZXSpectrum and the Gridrunner font.
    The two first are from bitmaps and the Gridrunner is from a memory dump in Vice.
    I guessed one of the chars in Gridrunner (the number one) and then searched the memory dump for that combination of bytes...
    Once I had that one, it was another guessing game to find the start and end of the font.
    Luckily for me, it was obvious where the font started and ended so it was not that hard... wink.gif
    Then dump that part as a hex file through some code in Java that generated the code for Spin...

    How do the C64 font files look like ?
    Are they Windows font files or bitmaps ?
    Bitmaps I could probably figure out but Windows font files I don't know how they work...
    Attach one or two files in a post and I'll see if I can make a more general program in Java...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2008-01-26 23:07
    Oldbit, are they .64c files?
    if so, they're EASY to convert [noparse]:)[/noparse]
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-26 23:16
    Yes they are. I've found a source for a ton of them..
    kofler.dot.at/c64/font_01.html

    How do we convert them for use with something like the AiGeneric display?

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BaggersBaggers Posts: 3,019
    edited 2008-01-27 11:50
    I'll modify AiGeneric_Video_DEMO to use one. and post in a bit.
  • BaggersBaggers Posts: 3,019
    edited 2008-01-27 12:49
    There ya go [noparse]:)[/noparse]

    Changes are in
    Ai_Generic_Driver.spin
    in the "out" function to convert ascii to C64 characters, I've only really done A-Z and a-z ( you'll have to modify the letters depending on the layout of the font, but I've done the main ones. oh, and 0-9 are in same place, so no change needed there·smile.gif· )·if you want all the -+?= etc you'll have to add those by something like
    [noparse][[/noparse]code]
    · elseif b=="+"
    ·· b:=whatever_new_char_num_for_plus_is
    [noparse][[/noparse]/code]
    don't forget to put elseif's as you don't want it to be changed twice [noparse]:)[/noparse]

    other changes are in Ai_Generic_Driver_002

    I've added
    [noparse][[/noparse]code]
    pub get_font_num_chars
    · return (((@fontend-@font)-2)/8)
    ·
    dat
    font· file "c64_lower.64c"
    'font· file "cbm_348.64c"
    fontend byte
    [noparse][[/noparse]/code]
    to the end of the file, to include the .64c font file of your choice.

    removed
    [noparse][[/noparse]code]
    '· FONT_CHARS··················· = tv_SmallFont_Font_0#FONT_CHARS
    [noparse][[/noparse]/code]
    and changed GetPtrToFontTable to
    [noparse][[/noparse]code]
    PRI GetPtrToFontTable( fontNumber ) | ptr
    ·· result := @font+2'tv_SmallFont_Font_0.GetPtrToFontTable
    ·ptr := result
    ' if byte[noparse][[/noparse] ptr+constant(" "*8) ]~
    ·· repeat (get_font_num_chars * 8)
    ···· byte[noparse][[/noparse] ptr++ ] ><= 8
    [noparse][[/noparse]/code]
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-27 13:40
    Incredible! Imported with a couple lines of code! Baggers, you are a code-slinging genius!

    You realize that you've just unlocked nearly unlimited font ability for the text driver.
    I'm looking forward with playing with this later today.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

  • BaggersBaggers Posts: 3,019
    edited 2008-01-27 13:47
    Thanks [noparse]:)[/noparse]

    Yeah, there's tons of fonts on that site, nice find.

    Only glad to help [noparse]:)[/noparse]
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-27 20:07
    I've created a single-file archive of all the fonts on that site.
    jeffledger.googlepages.com/c64fonts.zip

    We should probably move this to it's own thread as not to hijack this one.
    (I'll post something in Propeller about it.)

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with the Protoboard? - Propeller Cookbook
    Got an SD card? - PropDOS
    A Living Propeller FAQ - The Propeller Wiki
    (Got the Knowledge? Got a Moment? Add something today!)

Sign In or Register to comment.