Jump to content
IGNORED

code in ram?


CrazyBoss

Recommended Posts

From A hardware view it should be quicker to read code from ram, instead of a rom - any one tried it ? Will the code run a bit quicker if moved to ram and executed in Ram ?

 

Maybe this subject only fits assembler programmers, guess its not so easy for c programmers to control code and move it around.

 

I remember the MSX turbo-r had a mode where the roms was moved to ram, to let it execute quick enought for the R800 processor (Risc compatible z80)

 

 

 

Link to comment
Share on other sites

From A hardware view it should be quicker to read code from ram, instead of a rom - any one tried it ? Will the code run a bit quicker if moved to ram and executed in Ram ?

 

Maybe this subject only fits assembler programmers, guess its not so easy for c programmers to control code and move it around.

 

I remember the MSX turbo-r had a mode where the roms was moved to ram, to let it execute quick enought for the R800 processor (Risc compatible z80)

 

 

 

 

As far as I know, the Colecovision runs the code at same speed, doesn't matter if it's in RAM or ROM.

Link to comment
Share on other sites

  • 2 weeks later...

The only real advantage, is running in RAM allows you to use self modifying code which was useful in the early Z80 days on computers to save variable space and make some routines a little faster (direct load of a register is faster than a memory load) several clock cycles can be saved in loops, but with the CV having such a small amount of RAM and its video being tied to the TI chips access clock, there's not a lot to be gained from these kind of code gymnastics. But am sure someone will find a good reason to do it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...