URL
https://opencores.org/ocsvn/w11/w11/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 19 |
Rev 33 |
; $Id: test_0010_alloc.mac 501 2013-03-30 13:53:39Z mueller $
|
; $Id: test_0010_alloc.mac 501 2013-03-30 13:53:39Z mueller $
|
;
|
;
|
; test basic label and allocation constructs
|
; test basic label and allocation constructs
|
; .blkb
|
; .blkb
|
; .blkw
|
; .blkw
|
; .word
|
; .word
|
; .byte
|
; .byte
|
; .even
|
; .even
|
; .odd
|
; .odd
|
; normal and local labels
|
; normal and local labels
|
;
|
;
|
; .blkb and .blkw
|
; .blkb and .blkw
|
;
|
;
|
|
|
.asect
|
.asect
|
|
|
zero: ;;!! 000000:
|
zero: ;;!! 000000:
|
.blkb 1000
|
.blkb 1000
|
stkbot: .blkw 400 ;;!! 001000:
|
stkbot: .blkw 400 ;;!! 001000:
|
|
|
; .word and .byte
|
; .word and .byte
|
|
|
w0: .word 101 ;;!! 002000: 000101
|
w0: .word 101 ;;!! 002000: 000101
|
w1: .word 102 ;;!! 002002: 000102
|
w1: .word 102 ;;!! 002002: 000102
|
b0: .byte 1 ;;!! 002004: 001
|
b0: .byte 1 ;;!! 002004: 001
|
b1: .byte 2 ;;!! 002005: 002
|
b1: .byte 2 ;;!! 002005: 002
|
|
|
; .odd and .even
|
; .odd and .even
|
|
|
.odd
|
.odd
|
.byte 3 ;;!! 002007: 003
|
.byte 3 ;;!! 002007: 003
|
.byte 4 ;;!! 002010: 004
|
.byte 4 ;;!! 002010: 004
|
.even
|
.even
|
.word 103 ;;!! 002012: 000103
|
.word 103 ;;!! 002012: 000103
|
|
|
; normal and local labels (only backward refs)
|
; normal and local labels (only backward refs)
|
|
|
blk0: .word 0 ;;!! 002014: 000000
|
blk0: .word 0 ;;!! 002014: 000000
|
1$: .word blk0 ;;!! 002016: 002014
|
1$: .word blk0 ;;!! 002016: 002014
|
2$: .word 1$
|
2$: .word 1$
|
3$: .word 2$
|
3$: .word 2$
|
;
|
;
|
blk1: .word 0
|
blk1: .word 0
|
1$: .word blk1
|
1$: .word blk1
|
2$: .word 1$
|
2$: .word 1$
|
3$: .word 2$
|
3$: .word 2$
|
|
|
.end ;;!! 000001
|
.end ;;!! 000001
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.