From 7b8a81d6059a6dcbd75939d3cf00c5d52a3d8e1a Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Mon, 12 Oct 2020 18:07:54 -0400 Subject: [PATCH] add missing test cases for recent qasm iigs fixes. --- testdata/3006-pea.S | 39 +++++++++++++++++++++++++++++++++++ testdata/3007-data-star.S | 10 +++++++++ testdata/3008-macro-strings.S | 14 +++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 testdata/3006-pea.S create mode 100644 testdata/3007-data-star.S create mode 100644 testdata/3008-macro-strings.S diff --git a/testdata/3006-pea.S b/testdata/3006-pea.S new file mode 100644 index 0000000..14bc02e --- /dev/null +++ b/testdata/3006-pea.S @@ -0,0 +1,39 @@ +* verify pea doesn't have address mode errors with quoted strings + + + pea ',' + pea ';' + pea ' ' + pea '[' + pea ']' + pea '(' + pea ')' + + pea #',' + pea #';' + pea #' ' + pea #'[' + pea #']' + pea #'(' + pea #')' + + pea "," + pea ";" + pea " " + pea "[" + pea "]" + pea "(" + pea ")" + + pea #"," + pea #";" + pea #" " + pea #"[" + pea #"]" + pea #"(" + pea #")" + + pea '"' + pea "'" + pea #'"' + pea #"'" diff --git a/testdata/3007-data-star.S b/testdata/3007-data-star.S new file mode 100644 index 0000000..0d6a175 --- /dev/null +++ b/testdata/3007-data-star.S @@ -0,0 +1,10 @@ +* merlin (Apple II) updates the value of the * pc after each operand +* of a data statement. + + adr *,* + adrl *,* + da *,* + db *,* + ddb *,* + dfb *,* + dw *,* diff --git a/testdata/3008-macro-strings.S b/testdata/3008-macro-strings.S new file mode 100644 index 0000000..6bd9863 --- /dev/null +++ b/testdata/3008-macro-strings.S @@ -0,0 +1,14 @@ +* +* verify macro operand parsing handles quoted strings. +* + +xx mac + asc ]1 + eom + + xx '"hello"' + xx "'hello'" + xx 'hello' + xx "hello" + xx 'abc',00 + xx ff