OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [asm-11/] [tests/] [test_0030_alloc.mac] - Blame information for rev 40

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
; $Id: test_0030_alloc.mac 501 2013-03-30 13:53:39Z mueller $
2
;
3
; test .word/.byte with expressions ect
4
;
5
        .asect
6
        .blkw   400
7
 
8
w0:     .word   101             ;;!! 001000: 000101
9
w1:     .word   102             ;;!! 001002: 000102
10
b0:     .byte   1               ;;!! 001004: 001
11
b1:     .byte   2               ;;!! 001005: 002
12
 
13
; .word/.byte with expressions
14
 
15
        .word   100+77          ;;!! 000177
16
        .byte   2+<4*10>        ;;!! 042
17
        .byte   ^c0             ;;!! 377
18
 
19
        .byte   'H,'e,'l,'l
20
        .byte   'o,' ,'W,'o
21
        .byte   'r,'l,'d,'!,0
22
        .even
23
        .word   "He,"ll,"o
24
        .word   "Wo,"rl,"d!,0
25
 
26
        .word   w1-w0           ;;!! 000002
27
        .byte   /2       ;;!! 001
28
        .byte   b1-b0           ;;!! 001
29
 
30
w2:     .word   .               ;;!! 001052: 001052
31
        .word   w0+2            ;;!! 001002
32
        .word   w1-2            ;;!! 001000
33
 
34
; .word/.byte with empty ','
35
 
36
        .word   1,2             ;;!! 000001 000002
37
        .word   w0,w1           ;;!! 001000 001002
38
        .word   w0,             ;;!! 001000 000000
39
        .word   w0,,            ;;!! 001000 000000 000000
40
        .word   ,w0             ;;!! 000000 001000
41
        .word   ,,w0            ;;!! 000000 000000 001000
42
        .word   ,w0,            ;;!! 000000 001000 000000
43
        .word   ,               ;;!! 000000 000000
44
        .word   ,,              ;;!! 000000 000000 000000
45
        .word   w0,,w1          ;;!! 001000 000000 001002
46
 
47
        .end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.