mirror of
https://github.com/open-simh/simtools.git
synced 2026-02-24 16:08:50 +00:00
Allow expression (with constant value) in .RADIX
Also add a test file for it.
This commit is contained in:
24
tests/test-radix.mac
Normal file
24
tests/test-radix.mac
Normal file
@@ -0,0 +1,24 @@
|
||||
;;;;;
|
||||
;
|
||||
; Test .radix directive
|
||||
;
|
||||
.RADIX 8
|
||||
.WORD 10
|
||||
.RADIX 10
|
||||
.WORD 10
|
||||
.RADIX ;Default is 8
|
||||
.WORD 10
|
||||
.RADIX 2
|
||||
.WORD 10
|
||||
.RADIX 16
|
||||
.WORD 10
|
||||
; Odd but valid
|
||||
.RADIX ^O10 ;Octal 10, i.e., 8
|
||||
.WORD 10
|
||||
.RADIX 5+5
|
||||
.WORD 10
|
||||
; Errors
|
||||
.RADIX 7
|
||||
.WORD 10 ;Radix is unchanged after error
|
||||
.RADIX .
|
||||
.WORD 10
|
||||
Reference in New Issue
Block a user