From 4d8443271050ac4434ed3daf4684f44125b7da5c Mon Sep 17 00:00:00 2001 From: Jeff Connelly Date: Fri, 16 May 2008 17:18:19 -0700 Subject: [PATCH] Assembler: add ahead.t to demonstrate that asm.py isn't a two-pass assembler. --- asm/ahead.t | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 asm/ahead.t diff --git a/asm/ahead.t b/asm/ahead.t new file mode 100644 index 0000000..20f997f --- /dev/null +++ b/asm/ahead.t @@ -0,0 +1,6 @@ +; This will fail to assemble because the labels refer to future instructions. +; TCA2's asm.py doesn't currently allow this, but it is possible by using +; a two-pass assembler to first resolve the labels, then assemble. + be below, below2 +below: lwi -3 +below2: cmp in, a -- 2.11.4.GIT