insn-%.ps: insn-%.txt Makefile
atp -T A4 -B -f Courier7.4 <$< $o
+test1.o test2.o: test.inc
+test.hex: test1.o test2.o
+ $(LINK)
+
copybits.o serialloop.o: onecopybit.inc
--- /dev/null
+; test for externs and res and stuff
+
+ include /usr/share/gputils/header/p18f458.inc
+
+; extern somewhere
+; extern nothing_much
--- /dev/null
+; test for globals and res and stuff
+
+ extern nothing_much
+ global fixed
+ global somewhere
+
+ include test.inc
+
+ udata_acs
+somewhere res 1 ; silly variable which gets incremented
+
+ udata 0x200
+fixed res 16
+
+vectors code 0
+ goto startup
+
+ code
+
+startup
+ call nothing_much
+ goto startup
+
+ end
--- /dev/null
+; test for globals and res and stuff
+
+ include test.inc
+
+ code
+
+nothing_much
+ incf somewhere, 1
+ lfsr 0, fixed
+ decf POSTINC0
+ return
+
+ global nothing_much
+ extern somewhere
+ extern fixed
+
+ end