Chip16 Official thread (Development/Suggestions)

Discussion in 'Web development / Programming' started by tykel, Nov 6, 2011.

  1. dreampeppers99

    dreampeppers99 Member

    Messages:
    642
    Likes Received:
    14
    I noticed some VM16 are implementing obsolete opcodes for retro compatibility... where can I find docs for those or where can I find rom for vm16?
  2. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    Which ones do you mean?
  3. dreampeppers99

    dreampeppers99 Member

    Messages:
    642
    Likes Received:
    14
    jump carry and jump zero, I didn't see them on official opcodes.
  4. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    Lucky for you, I had an old spec laying around, so I have attached it for you :)

    Attached Files:

  5. dreampeppers99

    dreampeppers99 Member

    Messages:
    642
    Likes Received:
    14
    thanks
  6. dreampeppers99

    dreampeppers99 Member

    Messages:
    642
    Likes Received:
    14
    I read this Doc, thank you very much @refraction :) , I have some questions though, let's suppose.

    Client: X86
    Target: C16

    My simple emitter should:
    Code:
    class X86Emitter
      EAX = 0
      EBX = 3
      
      init()
        buffer = []  * 256
    
      emit16(word16)
        buffer << word16
    
      execute()
         run_asm86x(buffer)
    
      mov_memory_to_register(m, r)
        ....
    
    The question is how to translate opcodes which evolves memory (target) w/r?
  7. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    There is a Mov16RtoM example in that page i linked to you. If you want more instructions i have a full recompiler with a couple of small optimizations in my RefChip16 (linked in the first post, also in my sig) which has all the instructions you should need.

    Please be aware, making a Dynamic Recompiler is a lot more difficult than an interpreter.
  8. tykel

    tykel Sober coder

    Messages:
    462
    Likes Received:
    4
    A dynamic recompiler is something I have wanted to implement for a while.
    Maybe I will take a closer look at Refchip16's source code soon, refraction. :)
  9. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    No probs mate, any questions, give me a shout :)
  10. Shendo

    Shendo Moderator Staff Member Moderator

    Messages:
    5,154
    Likes Received:
    45
    I'm making a PC BIOS spoof for Chip16.
    Users should be able to interact with it the same way as with real CMOS setup utility.

    I've converted codepage 437 to Chip16 format, added CGA palette, made a window drawing function and started working on the menu system.
    When I'm done I'll release it along with the source.

    Here is the screenshot of the current progress.

    Attached Files:

    KrossX likes this.
  11. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    Nice! Interesting idea :p
  12. tykel

    tykel Sober coder

    Messages:
    462
    Likes Received:
    4
  13. overclocked

    overclocked Member

    Messages:
    56
    Likes Received:
    1
    OK, here are some screenshots off my latest Chip16 application. I call it COAC, anyone care to guess what it is/will become? ;-)

    I actually had it in this condition for a year or more, but due to a nasty drawing bug, I lost interest in it. The other day I did a revisit and managed to fix at least that bug.. There are work left to be done, but I though I would show all you Chip16 nerds the currect state.

    NOTE: I show you one pic here, but there are some more as attachments.

    COAC1.png

    Attached Files:

  14. Shendo

    Shendo Moderator Staff Member Moderator

    Messages:
    5,154
    Likes Received:
    45
    Chip8 on a Chip16 interpreter?
    Looks awesome!
  15. overclocked

    overclocked Member

    Messages:
    56
    Likes Received:
    1
    Thanks Shendo! I will keep on working on it and of course release both binary and sources when it feels somewhat ready.
    It is not optimized in any way, but still Chip8 is normally a piece of cake for Chip16. Like seen in some of the screens the simple Chip8 ROM's need approx. 3-5% of frame time. But because drawing is tedious work, if drawing alot of sprites, that number will go up.
  16. paul_nicholls

    paul_nicholls Member

    Messages:
    187
    Likes Received:
    0
    Looking good overclocked...a very neat idea :)
    Keep up the great work mate :)
  17. tykel

    tykel Sober coder

    Messages:
    462
    Likes Received:
    4
    @overclocked I'd love to see an update (and download :) ) of your chip16 chip8 interpreter!

    @Shendo And I'd like to try out that fake BIOS rom too!..

    I've been working on a platformer. Collisions are pretty buggy, I might do some rewriting!

    hbt-scr2.png

    Attached Files:

    • hbt.zip
      File size:
      2.1 KB
      Views:
      3
  18. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19
    I see what you mean about the bugs, seems to get stuck in the roof quite a bit :p

    Aside from that it looks awesome and is a great concept for a platformer on the chip16 system! Well done mate :)
  19. overclocked

    overclocked Member

    Messages:
    56
    Likes Received:
    1
    @tykel Looking great there. Your platformer seem to show a (at least one) of the weak spots in my nChip16 emulator, i'll try to fix that.
    And yes, some more bugs needs to be ironed out and some more stuff to be implemented before COAC is ready for a first release. Some illness and other stuff coming in between but It'll come! I have some cool ideas for it later..
  20. refraction

    refraction PCSX2 Coder Contributors Award Winner!

    Messages:
    10,102
    Likes Received:
    19

Share This Page