-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
48 lines (26 loc) · 989 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
RASMATAZ - An Assembler Front End (Driver) / Architecture Neutral Assembler
This is an experiement in using Ruby's DSL abilities to make an assembler, the goal of which
is to see how little code is needed given what Ruby does 'out-of-the-box'.
I intend to make use of this project at some point to create an assembler for a virtual machine
and language I plan to make. It does a few things right now, but mostly it shows the neat features
of Ruby for makeing DSL's.
This is not a copy of Wilson, it is more like a MASM.
http://blog.zenspider.com/2009/06/wilson-version-111-has-been-re.html
To play with rasmataz:
load
irb
> load 'example.rasm', nil
dump registers
> registers
dump stack
> stack
dump memory
> memory
dump labels
> labels
step
Will step on instruction at a time, and show result.
run program
> go
You can also just run the entire program from the command line with "ruby example.rasm"
but I like the interactive mode.