mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-29 21:21:34 +00:00
Add some tests for things I have fixed while the last weeks.
This commit is contained in:
17
tests/test-backpatch.mac
Normal file
17
tests/test-backpatch.mac
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user