Commit Graph

33 Commits

Author SHA1 Message Date
Shawn Quick e687507a3b now able to push all test scripts to a directory that can be shared with gsplus, and files directly loaded into Merlin. Also support 'CHK' p-op to compare assemblies between the two 2023-02-09 13:26:09 -08:00
Shawn Quick 4380f4e8ca might be broken, work on addressing modes and shift operators < > | ^ 2023-02-08 10:14:55 -08:00
Shawn Quick 6e9eb6cfcc fixed a few bugs, got more tests to pass, added some parms.json options 2023-02-05 21:38:02 -08:00
Shawn Quick 2f79abe461 work on cmake-tools under vscode, adding syntax checking, and script processing 2023-02-05 10:49:07 -08:00
Shawn Quick 1fb1aa259d build ciderpress libraries with cmake 2023-02-04 15:37:30 -08:00
Shawn Quick e74f463a1e Merge branch 'master' of github.com:marketideas/qasm 2022-01-17 11:22:23 -08:00
Shawn Quick e1f1f662df libpal updates 2022-01-17 11:21:57 -08:00
Kelvin Sherlock fc62d0c9e7 'a' as an operand is ignored.
Based on testing with Merlin-16+ 4.12, this seems to apply in all cases

inc a -> equivalent to inc
lda a -> equivalent to lda (bad address mode error)

if you do have an 'a' label, you need to specify the address mode, eg

lda |a, lda >a, lda <a
2021-08-31 18:08:08 -04:00
Kelvin Sherlock 8d65e4c290 link script ext support
"label ext" should import label (an absolute ent from a .L file) into the local symbol table.
handled by setting the linkgeqbit.
2021-05-03 23:50:56 -04:00
Kelvin Sherlock 59925b3a08 qlinkgs - implement the len/pos linker opcodes
len [label]

sets label = size of most recently linked/imported file

  pos [label]

sets label = size of current segment.  If no label, resets the position variable to 0.

label is added to the symbol table as an absolute entry.

Testing in merlin 16+, these are absolute entry labels, not gequ labels
Merlin does not include any ds fill in the len/pos, but that decision
seems questionable. these do include a ds fill for both.
2021-05-01 12:37:26 -04:00
Kelvin Sherlock b92683ed43 REL DS calculation is based on the total segment size, not the current file.
additionally, it was block moving the size of the DS fill rather than the size of the relocation records.
2021-04-27 16:39:22 -04:00
Kelvin Sherlock f35e76b682 In Merlin, link script GEQU (and KBD) values are available to the assembler and the linker, as absolute values.
This makes them available in the link phase (asm phase was already supported).
2021-04-23 23:38:25 -04:00
Kelvin Sherlock 2b9f5856d8 add test files for external abs 2021-04-12 20:53:57 -04:00
Kelvin Sherlock 7b8a81d605 add missing test cases for recent qasm iigs fixes. 2020-10-12 18:07:54 -04:00
Lane Roathe 0bedddc756 Remove broken links in project file, fix run to use relocated test file 2020-01-14 16:49:48 -08:00
Kelvin Sherlock f0b10c0221 Add USR opcode. This uses the Merlin and QAsm opcode hashing scheme. 2019-12-19 20:05:49 -05:00
Lane Roathe d78c8612f9 Merge branch 'sgq_qasm_main' of https://github.com/marketideas/qasm 2019-11-23 09:24:28 -08:00
marketideas 0b8a9dfae4 more m32 compatibility tests 2019-11-20 18:36:29 -08:00
Lane Roathe 3cab17d7f5 Merge branch 'sgq_qasm_main' of https://github.com/marketideas/qasm 2019-11-20 13:42:08 -08:00
marketideas 37ba8aaf40 more mods for testruns 2019-11-20 10:38:23 -08:00
marketideas eba951f00f moving some test scripts around 2019-11-20 10:20:43 -08:00
marketideas 630ea66623 adding script to create M32 output files 2019-11-20 07:59:02 -08:00
marketideas e2dd7ab645 test 2019-11-19 17:09:58 -08:00
marketideas d3bc1455fa removed operand with spaces 2019-11-19 15:55:38 -08:00
marketideas 2e6f8af54e all tests assemble, ]vars seem to be working 2019-11-19 11:27:17 -08:00
marketideas b391c9b729 parser regex complete 2019-11-19 08:38:49 -08:00
marketideas 3fd0c7bcb5 test 2019-11-18 06:07:44 -08:00
marketideas 09482611cf test 2019-11-17 19:54:48 -08:00
marketideas 065a247cc2 test 2019-11-17 18:46:49 -08:00
marketideas 7733b41076 test 2019-11-17 16:14:52 -08:00
marketideas f639c41946 test updates 2019-11-17 14:26:06 -08:00
marketideas dcd12630af test 2019-11-17 13:32:32 -08:00
marketideas a306f6f3d2 test 2019-11-13 15:51:19 -08:00