File: vmtest10.pda

package info (click to toggle)
eclipse-platform 4.29-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 70,168 kB
  • sloc: java: 524,463; xml: 64,602; javascript: 4,902; jsp: 4,210; ansic: 870; makefile: 38
file content (38 lines) | stat: -rw-r--r-- 617 bytes parent folder | download | duplicates (8)
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
def register $reg1 group1 true
def register $reg2 group1 false
def register $reg3 group2 true
def bitfield $reg1.field1 0 2
def bitfield $reg1.field2 2 2
def mnemonic $reg1.field2 zero 0
def mnemonic $reg1.field2 one 1
def mnemonic $reg1.field2 two 2
def mnemonic $reg1.field2 three 3
push 1
pop $$reg1
push $$reg1
output
push 2
pop $$reg1.field1
push $$reg1.field1
output
push 4
pop $$reg1.field1
push $$reg1.field1
output
push 1
pop $$reg1.field2
push $$reg1
output
push zero 
pop $$reg1.field2
push $$reg1.field2
output
push $$reg1
output
push 2 
pop $$reg1.field2
push $$reg1.field2
output
push $$reg1
output
halt