Sunday, July 15, 2012

More Software work

I think I have the beginnings of some reasonable demo code well on the way.  Currently, it implements writing immediate values to registers, copying registers, using flow control operations to generate delays and call subroutines.  It performs mathematical operations like multiplication, addition and subtraction, logical operations like shift-right logical, xor and "and" operations, and conditional loops, jump-returns and breaks within 293 lines of machine code.

That's right, with a custom array of op-codes, I cannot program in high-level or even assembly language.  I have to write out each instruction as a 64-bit hexadecimal value.  In first year they tell you, "Don't worry, you will never have to even look at machine language.  The worst you will see is inline assembly."

<edit> Here is a link to a video of the work in progress.  There's no audio except the clicking of the switches.

No comments:

Post a Comment