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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.7/] [tools/] [asm-11/] [tests/] [test_0010_alloc.mac] - Blame information for rev 33

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
; $Id: test_0010_alloc.mac 501 2013-03-30 13:53:39Z mueller $
2
;
3
; test basic label and allocation constructs
4
;   .blkb
5
;   .blkw
6
;   .word
7
;   .byte
8
;   .even
9
;   .odd
10
;   normal and local labels
11
;
12
; .blkb and .blkw
13
;
14
 
15
        .asect
16
 
17
zero:                           ;;!! 000000:
18
        .blkb   1000
19
stkbot: .blkw   400             ;;!! 001000:
20
 
21
; .word and .byte
22
 
23
w0:     .word   101             ;;!! 002000: 000101
24
w1:     .word   102             ;;!! 002002: 000102
25
b0:     .byte   1               ;;!! 002004: 001
26
b1:     .byte   2               ;;!! 002005: 002
27
 
28
; .odd and .even
29
 
30
        .odd
31
        .byte   3               ;;!! 002007: 003
32
        .byte   4               ;;!! 002010: 004
33
        .even
34
        .word   103             ;;!! 002012: 000103
35
 
36
; normal and local labels (only backward refs)
37
 
38
blk0:   .word   0               ;;!! 002014: 000000
39
1$:     .word   blk0            ;;!! 002016: 002014
40
2$:     .word   1$
41
3$:     .word   2$
42
;
43
blk1:   .word   0
44
1$:     .word   blk1
45
2$:     .word   1$
46
3$:     .word   2$
47
 
48
        .end                    ;;!! 000001

powered by: WebSVN 2.1.0

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