Add some tests for things I have fixed while the last weeks.

This commit is contained in:
Olaf Seibert
2015-05-27 21:54:00 +02:00
parent d38f4009c4
commit bc450511d8
11 changed files with 214 additions and 0 deletions

17
tests/test-backpatch.mac Normal file
View File

@@ -0,0 +1,17 @@
;;;;
;
; Test backpatching (seen in Kermit sources).
.psect modinf ,ro,d,lcl,rel,con
label = .
.blkb 50 ; create some data
.byte 50,51,52 ; and some more
.save ; we're at 53 now
.psect modinf
. = label + 6
.word 6 ; stored at 6
.restore ; . gets restored to 53
.byte 53