open-simh.simtools/tests/test-blkb.mac
Olaf Seibert d61cad6bb4 Add some tests for .BLKB .BLKW .ODD .EVEN
.BLKB and .BLKW should have an argument, but if missing it is 1.
.ODD and .EVEN are not allowed to have an argument.
2017-04-27 21:56:02 +02:00

26 lines
454 B
Plaintext

;;;;;
;
; Test .BLKB and .BLKW
;
label: .blkb ; not recommended, but default argument is 1
.blkb 1
.blkb 2
.blkb 100.
.blkb label ; error: not an constant expression
.odd
.blkw 1 ; should maybe be an error: odd address
.even
label2: .blkb ; not recommended, but default argument is 1
.blkb 1
.blkb 2
.blkb 100.
.blkb label2 ; error: not an constant expression
.even 1 ; error: no argument allowed
.odd 1 ; error: no argument allowed