mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-23 10:58:52 +00:00
git-subtree-dir: crossassemblers/macro11 git-subtree-mainline: fc2c8875ca614c989a594d4cf266a9d4e1c98d1e git-subtree-split: 2a14ffe2519589011ffc4050d5d4fd6591fb4c3c command was: git subtree add --prefix=crossassemblers/macro11 git://github.com/Rhialto/macro11.git master
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
1 ;;;;
|
|
2 ;
|
|
3 ; Test backpatching (seen in Kermit sources).
|
|
4
|
|
5 000000 .psect modinf ,ro,d,lcl,rel,con
|
|
6
|
|
7 000000 label = .
|
|
8 000000 .blkb 50 ; create some data
|
|
9
|
|
10 000050 050 051 052 .byte 50,51,52 ; and some more
|
|
11 .save ; we're at 53 now
|
|
12 000053 .psect modinf
|
|
13 000006 . = label + 6
|
|
14 000006 000006 .word 6 ; stored at 6
|
|
15 000053 .restore ; . gets restored to 53
|
|
16 000053 053 .byte 53
|
|
17
|
|
17
|
|
|
|
|
|
Symbol table
|
|
|
|
. ******R 002 LABEL 000000R 002
|
|
|
|
|
|
Program sections:
|
|
|
|
. ABS. 000000 000 (RW,I,GBL,ABS,OVR,NOSAV)
|
|
000000 001 (RW,I,LCL,REL,CON,NOSAV)
|
|
MODINF 000054 002 (RO,D,LCL,REL,CON,NOSAV)
|