aboutsummaryrefslogtreecommitdiff
path: root/tests/stack_machine_old_tee/instructions.s.tcl
blob: 7fccd6fb4d946c8ae99cb97aa813d51e8a6d7de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env tclsh

source tclasm_old.tcl

set_sp h7FFFC
const hABCDEF
stack down
const hA98765
tee
## hA98765 should now be replaced with hABCDEF - we should have
## two hABCDEF's on stack - let's store them for verification
store@ h00100
stack up
store@ h00104
halt