Jump to content



Photo
- - - - -

About Chip8


  • Please log in to reply
7 replies to this topic

#1 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 20 December 2005 - 04:44 PM

Chip8 is a game interpreter from the late 70?s and early 80?s. Because it was designed as a portable, assembly-like language for small screens, it became popular with calculator enthusiasts.


So we could write Chip8 programs on ClassPad ? (maybe I misunderstood the word "interpreter")
It would be interesting that I (we) see the source code of Chip8, because It seems to be the only program which was compiled with .src files.
Please Brian, could you give me (us) the source code of Chip8 :)

#2 SoftCalc

SoftCalc

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 406 posts
  • Location:Portland, OR USA

  • Calculators:
    ClassPad 300 , AFX 2.0, HP-48/49/50, TI-89/92/Voyager, HP Expander, etc...

Posted 21 December 2005 - 09:09 PM

So we could write Chip8 programs on ClassPad ? (maybe I misunderstood the word "interpreter")
It would be interesting that I (we) see the source code of Chip8, because It seems to be the only program which was compiled with .src files.
Please Brian, could you give me (us) the source code of Chip8 :)

The chip8 game source is literally compiled byte-code. The interpreter is more like a Java interpreter reading precompiled byte-code. It doesn't have to do any parsing. That has already been done by another program on the PC to create the byte-code.

I cheated a bit on the Chip8 add-in. :rolleyes: Since it's just byte-code I converted the binary image for each game to an array of hex characters in a "C" source file, which is then compiled directly into the add-in.

There really isn't any reason why the chip8 add-in couldn't be improved so anyone could write their own game and then upload it to the ClassPad. Since the add-in doesn't do the parsing you'd have to compile it to byte-code on a PC or Mac. I'd also have to write a program on the PC that imports this file to either an MCS image or sends it directly via the USB cable to the ClassPad. Nobody has asked for this feature though. There are chip8 interpreters for the PC, Mac, TI and HP calculators, and I haven't seen a new game written for years, so I'm guessing there isn't a big demand for this.

Who needs chip8 now that we have CPLua. ;)

#3 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 21 December 2005 - 09:17 PM

Who needs chip8 now that we have CPLua. ;)


Yes, you are right. I found this interesting because I thought you used asmsh.exe to compile .src files, that's all.

#4 MicroPro

MicroPro

    Casio Overlord

  • Deputy
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Iran

  • Calculators:
    Casio ClassPad 300

Posted 22 December 2005 - 01:00 PM

Who is the creator of CPLua? Orwell? PAP? Kilburn? Who?
Anyway, It is a good idea to make CPLua compatible with Chip8 programs, such as:

//This is a Lua code:
Chip8
{
...
}

(I know this is a silly suggestion! :unsure: )

#5 2072

2072

    Casio over god

  • Admin
  • PipPipPipPipPipPipPipPip
  • 1564 posts
  • Gender:Male
  • Location:Somewherebourg
  • Interests:Alternative states of consciousness, programming, making things work the best they possibly can.

  • Calculators:
    AFX2 ROM 1.02, CFX-9940GT+, FX-180P-Plus

Posted 22 December 2005 - 01:04 PM

Orwell is the creator of CPLua

#6 MicroPro

MicroPro

    Casio Overlord

  • Deputy
  • PipPipPipPipPipPipPip
  • 640 posts
  • Gender:Male
  • Location:Iran

  • Calculators:
    Casio ClassPad 300

Posted 22 December 2005 - 01:14 PM

Orwell is the creator of CPLua

Thankyou! You replied me in less than 15 minutes and I replied you less than 15min, too!
:plol:

#7 Kilburn

Kilburn

    Casio Technician

  • Members
  • PipPipPipPipPipPip
  • 491 posts
  • Gender:Male
  • Location:France
  • Interests:Blah

  • Calculators:
    FX-7500 G
    ClassPad 300

Posted 22 December 2005 - 01:24 PM

Who is the creator of CPLua? Orwell? PAP? Kilburn? Who?
Anyway, It is a good idea to make CPLua compatible with Chip8 programs, such as:

//This is a Lua code:
Chip8
{
...
}

(I know this is a silly suggestion! :unsure: )


No, no, this is not Lua code. It would be rather

chip8([[
 -- Chip8 code
]])

;)

#8 Orwell

Orwell

    Casio Overlord

  • Members
  • PipPipPipPipPipPipPip
  • 777 posts
  • Gender:Male
  • Location:Paris - France

  • Calculators:
    Casio AFX 1.02 / Casio ClassPad 300

Posted 22 December 2005 - 01:59 PM

chip8([[
 -- Chip8 code
]])

;)

Huh... :blink:
Well if someone finds enough motivation to write it, why not... But this is something I don't want to risk myself :lol:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users