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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [asm-11/] [tests/] [test_0190_dot.mac] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 34 wfjm
; $Id: test_0190_dot.mac 712 2015-11-01 22:53:45Z mueller $
2
;
3
; test dot '.' handling
4
;    '.' refers in MACRO-11 (RT11 V4.0) to
5
;        - address of opcode in case of instructions
6
;        - current address in case of .word lists
7
;
8
        .asect
9
        .blkw   400
10
 
11
; use . in branches
12
 
13
        br      .               ;;!! 000777
14
        br      .+2             ;;!! 000400
15
        br      .+4             ;;!! 000401
16
        bcc     .+4             ;;!! 103001
17
 
18
; use . in immedate (refers to address of instruction)
19
 
20
        mov     #.,r0           ;;!! 001010: 012700 001010
21
        cmp     #.,#.           ;;!! 001014: 022727 001014 001014
22
 
23
; use . in .word lists (refers to current address
24
 
25
        .word   .               ;;!! 001022: 001022
26
        .word   .,.             ;;!! 001024: 001024 001026
27
        .word   .,0,.           ;;!! 001030: 001030 000000 001034
28
 
29
        .end

powered by: WebSVN 2.1.0

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