ShopDreamUp AI ArtDreamUp
Oh god writing an assembler is hard. :/
So i though i was done.
And then variables reared their ugly heads at me.
Maybe i'll just use the label notation.
:|
How programs will look [Flash micro architecture]
[Related]
So i posted earlier today about my beginning efforts to build a computer architecture in AS3.
Still going strong, working well.
Here's what's new:
I've started a lot of work on the assembler, and i'm starting to get an idea of how the assembly will look, and be compiled.
Here's an example class, showing the program and how it is assembled and run:
package
{
import VM.CPU;
import VM.RAM;
import VM.UTILS.ASSEMBLER;
import flash.display.Sprite;
public final class Main extends Sprite
{
private var mem:RAM = new RAM ();
private var cpu:CPU = new CPU ( mem );
private var flasm:ASSEMBLER = new ASSEMBLER ();
Writing a computer architecture in flash
So in an effort to understand how a computer works at it's base level, i've decided to build a virtual computer architecture in flash. Let me say this: I respect anyone who does the designs on real CPUs. That stuff is hard! What's even more frustrating is that once i got a few instructions going, it has become obvious that writing a chain of units is just too confusing. So i'm also writing an assembler for the aforementioned VM. Don't get me wrong, it's fun when it works. And i'm really enjoying it. But sometimes you just can't figure it out, and THAT is bothersome.
Anyway, i'll eventually release this open source, and it will have the abili
Devious Journal Entry
I'm just sitting, programming.
Goodness, i'm too tired for logic right now.
But i want to get movement working!
.....
Minecraft!
.....
CIRCLETINE!
© 2014 - 2024 TheRelentlessVoid
Comments1
Join the community to add your comment. Already a deviant? Log In
welcome back... look out for what?