I'm making a virtual CPU of sorts and wondering what instructions I should add.
Yes 'add' should be one of your instructions! Very Happy

It depends on what kind of CPU you're planning for, something minimal or something with a very comprehensive instruction set?

Instructions that were always lacking on z80 are things like signed/unisgned mul/div which would be handy.
Add a useless pin that in all official documentation says "unused" but actually make it output the audio from Never Gonna Give You Up
tr1p1ea wrote:
Yes 'add' should be one of your instructions! Very Happy

It depends on what kind of CPU you're planning for, something minimal or something with a very comprehensive instruction set?

Instructions that were always lacking on z80 are things like signed/unisgned mul/div which would be handy.

already 'add'ed

i plan to add as much as you can fit in 8 bits

ok i'll add that

edit: i added an instruction that modifies the next instruction to be signed
idk the formal way to do this, but i'm just posting here to bring this topic up as i didn't get as much replies as i'd like
(again)
F8 for sdcc seems relevant, since they were looking at what makes a little CPU a nice target for C. Cheap stack-relative addressing seems like a key thing that's nice to have.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement