mirror of
https://github.com/wfjm/w11.git
synced 2026-02-28 09:37:47 +00:00
- tools/bin
- asm-11
- add .if, .if(f|t|tf), .endc, .rept, .endr, .mexit directives
- add .error, .print, .mcall, .mdelete directives
- add .narg, .nchr, .ntype directives
- rewrite macro definition and call argument parsing & handling
- add -L option (to set .mcall pathlist)
- add auto-generated ...top label
- add flag (MRmrd) column in output format
- asm-11_expect
- add simple substitution mechanism (for macro testing)
- handle new flag column in output format
- tools/asm-11
- tests(-err): many tests added
- tests(-err)/Makefile: distclean target added
- mlib: macro library, accessed by .mcall
32 lines
1003 B
Plaintext
32 lines
1003 B
Plaintext
; $Id: test_0190_dot.mac 1353 2023-01-23 18:13:53Z mueller $
|
|
; SPDX-License-Identifier: GPL-3.0-or-later
|
|
; Copyright 2015-2023 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
|
;
|
|
; test dot '.' handling
|
|
; '.' refers in MACRO-11 (RT11 V4.0) to
|
|
; - address of opcode in case of instructions
|
|
; - current address in case of .word lists
|
|
;
|
|
.asect
|
|
. = 1000
|
|
|
|
; use . in branches
|
|
|
|
br . ;;!! 000777
|
|
br .+2 ;;!! 000400
|
|
br .+4 ;;!! 000401
|
|
bcc .+4 ;;!! 103001
|
|
|
|
; use . in immedate (refers to address of instruction)
|
|
|
|
mov #.,r0 ;;!! 001010: 012700 001010
|
|
cmp #.,#. ;;!! 001014: 022727 001014 001014
|
|
|
|
; use . in .word lists (refers to current address
|
|
|
|
.word . ;;!! 001022: 001022
|
|
.word .,. ;;!! 001024: 001024 001026
|
|
.word .,0,. ;;!! 001030: 001030 000000 001034
|
|
|
|
.end
|