Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Programming NES (Games)

Hacking the NES With Lisp 80

Andy Hefner has a detailed blog post covering his quest to program an NES with the assistance of Common Lisp. He developed a new 6502 assembler, a mini-language for composing musical sequences, and a neat demo (rom image).

This discussion has been archived. No new comments can be posted.

Hacking the NES With Lisp

Comments Filter:
  • by Dwedit ( 232252 ) on Monday February 06, 2012 @10:22PM (#38948863) Homepage

    Yeah, when you're writing Assembly, it's still assembly. Using lisp to make macros doesn't change the langauge.

  • by Darinbob ( 1142669 ) on Tuesday February 07, 2012 @01:07AM (#38949777)

    The earliest lisps had assembler. It was sort of normal in a way because assembler was your language of choice for this sort of thing. C didn't exist yet, Fortran was just wrong, the other procedural languages were bulky, etc. Machines were low on memory and you often wanted to machine specific actions, you were writing your own runtime library as you went. So even as far back as Lisp 1.5 documentation discusses how to use assembler.

    The earliest lisps had compilers as well which went well with assembler written functions. Your programming environment was often a stack of cards that were loaded into a machine, or a tape that was read. So stopping to edit/compile/link/load was often impractical compared to just dumping some assembler while still in the interpreter (though of course if you crashed the machine you had to hide until pitchfork wielding mob stopped looking for you).

    The thing people remember most about Lisp other than parentheses are CAR and CDR functions. These are named for specific fields in a PDP 36-bit word which were accessible via machine instructions.

All seems condemned in the long run to approximate a state akin to Gaussian noise. -- James Martin

Working...