From: ian Date: Mon, 2 May 2005 09:23:24 +0000 (+0000) Subject: silly test files used for checking assembler/linker's error behaviour X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=abff7d7b3a0b40f3e82b8e0238c5f3e5c7cf0c8d;p=trains.git silly test files used for checking assembler/linker's error behaviour --- diff --git a/iwjpictest/a2.asm b/iwjpictest/a2.asm new file mode 100644 index 0000000..d14ea76 --- /dev/null +++ b/iwjpictest/a2.asm @@ -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 index 0000000..d338d4c --- /dev/null +++ b/iwjpictest/asmtest.asm @@ -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