git @ Cat's Eye Technologies SixtyPical / b2b2582
Add some tests for copying literal words to word memory locations. Chris Pressey 4 years ago
2 changed file(s) with 29 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
266266 | }
267267 = 00c0ad0fc08d0dc0ad10c08d0ec060
268268
269 Copy literal word to word.
270
271 | word bar
272 |
273 | routine main
274 | outputs bar
275 | trashes a, n, z
276 | {
277 | copy 65535, bar
278 | }
279 = 00c0a9ff8d0bc0a9ff8d0cc060
280
269281 Copy vector to vector.
270282
271283 | vector bar
280292 | }
281293 = 00c0ad0fc08d0dc0ad10c08d0ec060
282294
283 Copy instruction inside an `interrupts off` block.
295 Copy routine to vector, inside an `interrupts off` block.
284296
285297 | vector bar
286298 |
434434 = y: 0
435435 = z: 0
436436
437 Copy literal word to word.
438
439 | word bar
440 |
441 | routine main {
442 | copy word 2000, bar
443 | }
444 = a: 0
445 = bar: 2000
446 = c: 0
447 = n: 0
448 = v: 0
449 = x: 0
450 = y: 0
451 = z: 0
452
437453 Indirect call.
438454
439455 | vector foo outputs x trashes z, n