chiark / gitweb /
silly test files used for checking assembler/linker's error behaviour
authorian <ian>
Mon, 2 May 2005 09:23:24 +0000 (09:23 +0000)
committerian <ian>
Mon, 2 May 2005 09:23:24 +0000 (09:23 +0000)
iwjpictest/a2.asm [new file with mode: 0644]
iwjpictest/asmtest.asm [new file with mode: 0644]

diff --git a/iwjpictest/a2.asm b/iwjpictest/a2.asm
new file mode 100644 (file)
index 0000000..d14ea76
--- /dev/null
@@ -0,0 +1,20 @@
+       include         /usr/share/gputils/header/p18f458.inc
+       include         insn-aliases.inc
+        radix           dec 
+
+       global          wonk
+       
+       org             0x20
+       fill            0x2345, 0x14
+wonk
+       nop
+
+.glork udata
+gthing2        res     1
+gother2        res     1
+
+       udata_acs
+thing2 res     1
+other2 res     1
+
+       end
diff --git a/iwjpictest/asmtest.asm b/iwjpictest/asmtest.asm
new file mode 100644 (file)
index 0000000..d338d4c
--- /dev/null
@@ -0,0 +1,40 @@
+       include         /usr/share/gputils/header/p18f458.inc
+       include         insn-aliases.inc
+        radix           dec 
+
+       extern  wonk
+
+       org     0
+       mov_wf  thing
+
+       dw      0x5678
+
+       code
+       addwf           0x042,0
+       addwf           0x042,0,0
+       addwf           0x042,0,1
+       addwf           0xfde,0
+       addwf           0xfde,0,0
+       addwf           0xfde,0,1
+       addwf           0x376,0
+       addwf           0x376,0,0
+       addwf           0x376,0,1
+       add_wfw         0x376
+       add_wfwa        0x376
+       add_wfwb        0x376
+       goto            lab
+       nop
+       bra_c           wonk
+       bra             lab
+lab
+       nop
+
+.glork udata
+gthing res     1
+gother res     1
+
+ua     udata_acs
+thing  res     1
+other  res     1
+
+       end