Jump to content



Photo
- - - - -

Revolution-FX cleanup/refactoring


  • Please log in to reply
1 reply to this topic

#1 Andreas B

Andreas B

    Casio Freak

  • Members
  • PipPipPipPip
  • 160 posts
  • Gender:Male
  • Location:Norway

  • Calculators:
    fx-9860G SD

Posted 20 September 2007 - 07:41 PM

Hey (kucalc),
I was thinking that keeping revfx in one .c source file is not very neat.

Maybe split the source code into something like:
graphics.c for generic graphics stuff
sprite.c for sprite operations (take a bit space)
portio.c for the ReadPorts
rtc.c for you-know-what
machine.h for those hardware structs (st_cpg, st_wdt etc.)
serial.c
grayscale.c
And of course their respective header files.

If it is split like this, only the source files containing the required functions are compiled and linked (I think). That means space reduction and of course a cleaner file tree. I can comment your code if you want, if you fix this :P
Knowing how your own code works is no excuse for not writing comments in a public project ;)

Andreas.

#2 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 20 September 2007 - 11:19 PM

Yeah, I'll try do this when I have time.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users