blob: 58792d3cc5a4ce478d31ec5c48cd0f2bba495d88 (
about) (
plain)
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
|
#!/usr/bin/env tclsh
source tclasm.tcl
### do the same as in stack_machine_2 test, but use higher level instructions
## set sp to h7FFFC
set_sp h7FFFC
## get value h01010202 into r1
const h01010202
## get value h03030404 into r1
stack down
const h03030404
## get value h05050606 into r1
stack down
const h05050606
## get value h07070808 into r1
stack down
const h07070808
## write r1 to address h57574
store@ h57574
stack up
## write r1 to address h57578
store@ h57578
stack up
## write r1 to address h5757C
store@ h5757C
stack up
## write r1 to address h57580
store@ h57580
## finish test
halt
|