mirror of
https://github.com/wfjm/w11.git
synced 2026-01-18 09:32:31 +00:00
- C++ and Tcl based backend server: many support classes for interfacing to w11 system designs, and the associated Tcl bindings. - add 'asm-11', a simple, Macro-11 syntax subset combatible, assembler. - use now doxygen 1.8.3.1, generate c++,tcl, and vhdl source docs
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
; $Id: test_0010_alloc.mac 501 2013-03-30 13:53:39Z mueller $
|
|
;
|
|
; test basic label and allocation constructs
|
|
; .blkb
|
|
; .blkw
|
|
; .word
|
|
; .byte
|
|
; .even
|
|
; .odd
|
|
; normal and local labels
|
|
;
|
|
; .blkb and .blkw
|
|
;
|
|
|
|
.asect
|
|
|
|
zero: ;;!! 000000:
|
|
.blkb 1000
|
|
stkbot: .blkw 400 ;;!! 001000:
|
|
|
|
; .word and .byte
|
|
|
|
w0: .word 101 ;;!! 002000: 000101
|
|
w1: .word 102 ;;!! 002002: 000102
|
|
b0: .byte 1 ;;!! 002004: 001
|
|
b1: .byte 2 ;;!! 002005: 002
|
|
|
|
; .odd and .even
|
|
|
|
.odd
|
|
.byte 3 ;;!! 002007: 003
|
|
.byte 4 ;;!! 002010: 004
|
|
.even
|
|
.word 103 ;;!! 002012: 000103
|
|
|
|
; normal and local labels (only backward refs)
|
|
|
|
blk0: .word 0 ;;!! 002014: 000000
|
|
1$: .word blk0 ;;!! 002016: 002014
|
|
2$: .word 1$
|
|
3$: .word 2$
|
|
;
|
|
blk1: .word 0
|
|
1$: .word blk1
|
|
2$: .word 1$
|
|
3$: .word 2$
|
|
|
|
.end ;;!! 000001
|