From 2091dada5e5ae2aada061fa49b795ef902ece8cc Mon Sep 17 00:00:00 2001 From: Cat's Eye Technologies Date: Fri, 25 Apr 2014 23:21:00 +0100 Subject: [PATCH] Add failing test. --- doc/Emitting.markdown | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/Emitting.markdown b/doc/Emitting.markdown index 56d12af..fc9ce58 100644 --- a/doc/Emitting.markdown +++ b/doc/Emitting.markdown @@ -168,6 +168,22 @@ Copy command: immediate -> word = .data = .space position 2 +Copy command: byte-sized immediate -> word + + | reserve word position + | routine main { + | copy #1 position + | } + = main: + = lda #1 + = sta position + = lda #0 + = sta position+1 + = rts + = + = .data + = .space position 2 + Copy command: word -> word | reserve word position1